实现GNS的模拟路由器连接Internet(6)
时间:2025-01-19
时间:2025-01-19
实现GNS的模拟路由器连接Internet
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#enable pass cisco
R1(config)#line con 0
R1(config-line)#pass cisco
R1(config-line)#login
R1(config-line)#logg synchronous
R1(config-line)#no exec-timeout
R1(config-line)#line vty 0 15
R1(config-line)#pass cisco
R1(config-line)#login
R1(config-line)#loggsyn
R1(config-line)#no exec-timeout
R1(config-line)#exit
R1(config)#int fa0/0
R1(config-if)#ip add 192.168.0.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#
*Mar 1 00:05:53.659: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up
*Mar 1 00:05:54.659: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
上一篇:加固施工方案(中建四局)