路由器R配置
Router>enable 进入特权模式
Router#configure terminal
Router(config)#interface FastEthernet0/0 进入端口
Router(config-if)#no shutdown
Router(config-if)#ip address 172.16.1.254 255.255.255.0
Router(config-if)#exit
Router(config)#interface FastEthernet0/1
Router(config-if)#no shutdown
Router(config-if)#ip address 192.168.22.254 255.255.255.0
Router(config-if)#exit
交换机Switch0配置
Switch>enable
Switch#configure terminal
Switch(config)#interface vlan 1
Switch(config-if)#ip address 172.16.1.253 255.255..0
Switch(config-if)#ip default-gateway 172.16.1.254
交换机Switch1配置
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 2
Switch(config-if)#ip address 192.168.22.253 255.255.255.0
Switch(config-if)#ip default-gateway 192.168.22.254
网友评论