VLAN Name Status Ports
---------------------------------------------------------------------------- 1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/6 Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17, Fa0/18 Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24
10 VLAN0010 active Fa0/1
50 VLAN0050 active Fa0/5
Switch#show ip interface
Interface :VL10
Description :Vlan 10
OperStatus :UP
ManagementStatus :Enabled
Primary Internet address :172.16.1.2/24
Broadcast address :255.255.255.255
Physaddress :00d0.f8ff.8ab5
Interface :VL50
Description :Vlan 50
OperStatus :UP
ManagementStatus :Enabled
Primary Internet address :172.16.5.1/24
Broadcast address :255.255.255.255
Physaddress :00d0.f8ff.8ab6
2. 路由器基本配置
在路由器A上配置端口IP
RA(config)#interface fastethernet 1/0
RA(config-if)#ip address 172.16.1.1 255.255.255.0