网络学习:简单路由

要使得192.168.1的网络与192.168.2的网络互通,需要在路由器上做配置:

在192.168.1的路由器上配置:

L3>en           //进入特权模式
L3#conf t       //进入配置
L3(config)#interface gigabitEthernet 0/0            //选择接口(端口)
L3(config-if)#ip address 192.168.1.1 255.255.255.0  //添加IP地址
L3(config-if)#exit
L3(config)#interface gigabitEthernet 0/1
L3(config-if)#ip address 192.168.1.4 255.255.255.0
L3(config-if)#exit
L3(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.5  //添加路由

在192.168.2的路由器上做相应的配置,那么两个网络就互通了。

猜你喜欢

转载自blog.csdn.net/dawn0718/article/details/92803595