思科(Cisco)路由器里添加了交换模块应如何配置这台路由器和交换机模块的链接

2022-07-31 科技 56阅读
在路由器配置一个vlan1的地址172.16.0.1,然后把pc的网关设为172.16.0.1,就可以ping通10.0.0.2 ,你路由器的那头肯定还要有一个设备。

Router>en

Router#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int vlan 1

Router(config-if)#ip addr 172.16.0.1 255.255.255.0

Router(config-if)#no shut

Router(config-if)#

%LINK-5-CHANGED: Interface Vlan1, changed state to up

Router(config-if)#int f0/3/0

Router(config-if)#no shut

Router(config-if)#

%LINK-5-CHANGED: Interface FastEthernet0/3/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

Router(config-if)#int g0/0

Router(config-if)#ip addr 10.0.0.2 255.255.255.0

Router(config-if)#no shut
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com