小菜求救!!路由子接口为什么是down?

来源:百度知道 编辑:UC知道 时间:2024/06/01 21:47:39
(cisco)主要命令如下:
int e0
ip add 172.16.1.1 255.255.0.0
no shut
int e0.1 172.16.2.1 255.255.0.0
no shut
.
.
.
之后用show ip interface bri 命令时,e0口是up的,而e0.1却是down!
请问高手这是为何?!
小弟初学,再次先谢过!
Router(config)#int e0/0.1
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#int e0/0.2
Router(config-subif)#ip add 192.168.3.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int e 0
Router(config-if)#no shut
%LINK-3-UPDOWN: Interface Ethernet0, changed state to up
Router(config-if)#end
Router#show ip interface bri
Interface IP-Address OK? Method Status Protocol
Ethernet0 unassigned YES unset up up
Ethernet0.1 192.168.2.1 YES unset down down
Ethernet0.2 192.168.3.1 YES unset down down
Bri0

int e0.1是一个子接口,就是把e0分了子接口,就不能在e0上配IP了。如果你要在e0上配2个IP,可分为e0/0.1和e0/0.2 再把e0 no shut.还有一种就是在e0上配一个辅助地址 int e0 ip add 172.16.2.1 255.255.0.0 secondly

建议模拟工具用小凡。它用的是真实的路由器,交换机的IOS。
Boson有很多东西是模拟不了的。有时也会出现不可解释的问题

哈,不知道,在网上找一下就是否了

起子接口了,主接口不要IP ADD