cisco1760路由器配置问题!
现在有一台新的cisco1760的路由器,假如现在我想在上面划分3个不同的网段。就假设成设置192.168.41.0 192.168.42.0 182.168.43.0 这三个网段。
请问那位思科高手可以告诉我,该怎么设置,输入什么命令?
网友:
把3 个接口设成不同的网段,再起一个路由协议就ok了啊!
ex:
config t
int s0
ip add 192.168.41.1 255.255.255.0
no sh
int s1
ip add 192.168.42.1 255.255.255.0
no sh
int s2
ip add 192.168.43.1 255.255.255.0
router rip
net 192.168.0.0
no sh 是no shutdown 的简写,是用来激活端口的。
net shi network 的简写,式一条动态路由语句
网友2:
也可以通过子接口来实现!
网友3:
1760也没有这么多的以太网口吧!
楼上的子接口做法应该改为以下的做法。
router(config)#int e0/0.1
router(config-if)#ip address 192.168.1.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#exit
router(config)#int e0/0.2
router(config-if)#ip address 192.168.2.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#exit
router(config)#int e0/0.3
router(config-if)#ip address 192.168.3.1 255.255.255.0
router(config-if)#no shutdown
router(config-if)#exit