搭建了简单的局域网和广域网实验平台,如下:
路由器配置命令如下:
Router>enable
Router#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Router(config)#hostname
RB
RB(config)#enable
password todd
RB(config)#interface
serial 3/0
RB(config-if)#no
shutdown
RB(config-if)#ip
address 192.168.1.2 255.255.255.0
Ctrl z
RB#ping 192.168.1.1
RB#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
RB(config)#interface
f(tab)
RB(config)#interface
fastEthernet 0/0
RB(config-if)#ip
address 192.168.2.1 255.255.255.0
RB(config-if)#no
shutdown
注意:
路由器地址即为网关,一般设为第一个地址或者最后一个地址。例如192.168.0.1或者192.168.0.254
学习计算机网络需要规范细心,避免错误。
时间: 2024-12-17 12:35:01