1(default vlan), 2-3
vlan(s) allowed to pass this port:
1(default vlan), 2-4000
It is not a monitor port
It doesn\\'t belong to a port-aggregation
28287 packets output
2210677 bytes, 13133 multicasts, 241 broadcasts, 0 pauses
17511 packets input
1504252 bytes, 2373 multicasts, 240 broadcasts, 0 pauses
0 FCS errors
0 long frames
SwitchC(config)#show interface e0/9
Ethernet0/9 is up
Hardware is Fast Ethernet, Hardware address is 00e0.fc07.7042
Auto-duplex(Full), Auto-speed(100M), 100_BASE_TX
Flow control is disabled
Broadcast max-ratio is 100
PVID is 1
Mdi type: auto
It is a vlan trunking port, vlan(s) passing this port:
1(default vlan), 2, 4
vlan(s) allowed to pass this port:
1(default vlan), 2-4000
It is not a monitor port
It doesn\\'t belong to a port-aggregation
27603 packets output
2182362 bytes, 12321 multicasts, 357 broadcasts, 0 pauses
18249 packets input
1537891 bytes, 3171 multicasts, 126 broadcasts, 0 pauses
0 FCS errors
0 long frames
在SwitchB上注册VLAN6-10,在SwitchD上注册VLAN11-15,在SwitchE上注册VLAN16-20。用“show interface”命令和“show vlan”命令来观察每个trunk端口的VLAN注册状态。复习GVRP原理并说明原因。
5、在SwitchA上配置VLAN2的接口地址为10.1.1.100,配置VLAN3的接口地址为10.1.2.100,配置VLAN4的接口地址为10.1.3.100。配置PCA和PCC的网关为10.1.1.100,PCB的网关为10.1.2.100,PCD的网关为10.1.3.100。试着在PC机之间互相Ping,看是否能Ping通。然后在SwitchA上配置ACL来限制VLAN2和VLAN3内的PC机相互通信。 6、配置RouterA接口S0的IP地址为202.101.10.1,并在RouterA和SwitchA上启动OSPF。 试着在任意一台PC上PingRouterA接口S0的IP地址,测试PC机和RouterA之间的通信。
用“show ip route”命令来观察OSPF路由。
配置如下:
SwitchA#show running-config Building running configuration... Current configuration is : !
hostname SwitchA
rule-map l3 net1tonet2 10.1.1.0 255.255.255.0 10.1.2.0 255.255.255.0
flow-action net1tonet2 deny
acl net1tonet2 net1tonet2 net1tonet2
access-group net1tonet2
spanning-tree enable
link-aggregation Ethernet0/1 to Ethernet0/2 ingress-egress
link-aggregation Ethernet0/9 to Ethernet0/10 ingress-egress
gvrp enable !
interface Aux0/0 !
vlan 1 !
vlan 2 !
vlan 3 !
vlan 4 !
interface Ethernet0/1
-------------------------------------------------------------------------------- -- 作者:admin
-- 发布时间:2005-4-18 9:51:18 --
trunk all
gvrp enable !
interface Ethernet0/10
trunk all
gvrp enable !
interface Ethernet0/11
??????..
interface Ethernet0/2
trunk all
gvrp enable !
????? !
interface Ethernet0/9
trunk all
gvrp enable !
interface NULL0 !
interface VLAN-Interface1
ip address 202.101.10.2 255.255.255.0
!
interface VLAN-Interface2
ip address 10.1.1.100 255.255.255.0 !
interface VLAN-Interface3
ip address 10.1.2.100 255.255.255.0 !
interface VLAN-Interface4
ip address 10.1.3.100 255.255.255.0 ! !
router ospf
network 10.1.1.0 0.0.0.255 area 0.0.0.0
network 10.1.2.0 0.0.0.255 area 0.0.0.0
network 10.1.3.0 0.0.0.255 area 0.0.0.0
network 202.101.10.0 0.0.0.255 area 0.0.0.0 ! ! !
line aux 0
no login
line vty 0 4 !