路由器常用命令
R1(config)# interface s1/1
R1(config-if)# ip address 12.1.1.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# exitR1(config)# interface s1/1
R1(config-if)# ip address 12.1.1.1 255.255.255.0
R1(config-if)# ip address 13.1.1.1 255.255.255.0 secondary
R1(config-if)# no shutdown
R1(config-if)# exitR1(config-if)# no ip address [ip] [子网掩码]R1(config-if)# no ip addressR1(config)#ip host abc 12.1.1.2 (配置完后远程登录可以用telnet abc代替主机IP)使用路由器模拟PC
Last updated