配置默认网关
具体配置: SW1的配置 enable conf t hostname SW1 Int vlan 1 Ip add 192.168.1.10 255.255.255.0 no shut exit Ip defau 192.168.1.254 enable secret testsw1 line vty 0 4 pass hahasw1 login exit SW2的配置 enable conf t hostname SW2 Int vlan 1 Ip add 192.168.2.10 255.255.255.0 no shut exit Ip defau 192.168.2.254 enable secret testsw1 line vty 0 4 pass hahasw2 login exit R1的配置 enable conf t hostname R1 Int f0/0 Ip add 192.168.1.254 255.255.255.0 no shut Exit Int f0/1 Ip add 192.168.2.254 255.255.255.0 no shut exit enable secret testr1 line vty 0 4 pass hahar1 login exit PC配置 略
|