下午在做vlan实验,拓扑图如下: 
 
做完后PC0终端ping不通PC4,不同VLAN之间不能通信 
附: 
vlan2有: 
PC0:192.168.1.1/29  
PC3:192.168.1.2/29 
gataway:192.168.1.6 
 
vlan3有: 
PC1:192.168.1.9 
PC4:192.168.1.10 
gateway:192.168.1.14 
 
vlan4有: 
PC2:192.168.1.17 
PC3:192.168.1.18 
gateway:192.168.1.22 
 
下面的是路由器的子接口配置: 
 
JYU#sh int 
FastEthernet0/0 is up, line protocol is up (connected) 
  Hardware is Lance, address is 00d0.5886.6928 (bia 00d0.5886.6928) 
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec, 
     reliability 255/255, txload 1/255, rxload 1/255 
  Encapsulation ARPA, loopback not set 
  ARP type: ARPA, ARP Timeout 04:00:00,  
  Last input 00:00:08, output 00:00:05, output hang never 
  Last clearing of "show interface" counters never 
  Input queue: 0/75/0 (size/max/drops); Total output drops: 0 
  Queueing strategy: fifo 
  Output queue :0/40 (size/max) 
  5 minute input rate 0 bits/sec, 0 packets/sec 
  5 minute output rate 0 bits/sec, 0 packets/sec 
     0 packets input, 0 bytes, 0 no buffer 
     Received 0 broadcasts, 0 runts, 0 giants, 0 throttles 
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 
     0 input packets with dribble condition detected 
     0 packets output, 0 bytes, 0 underruns 
     0 output errors, 0 collisions, 1 interface resets 
     0 babbles, 0 late collision, 0 deferred 
     0 lost carrier, 0 no carrier 
     0 output buffer failures, 0 output buffers swapped out 
FastEthernet0/0.1 is up, line protocol is up (connected) 
  Hardware is PQUICC_FEC, address is 00d0.5886.6928 (bia 00d0.5886.6928) 
  Internet address is 192.168.1.6/29 
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,  
     reliability 255/255, txload 1/255, rxload 1/255 
  Encapsulation 802.1Q Virtual LAN, Vlan ID 2 
  ARP type: ARPA, ARP Timeout 04:00:00,  
  Last clearing of "show interface" counters never 
FastEthernet0/0.2 is up, line protocol is up (connected) 
  Hardware is PQUICC_FEC, address is 00d0.5886.6928 (bia 00d0.5886.6928) 
  Internet address is 192.168.1.14/29 
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,  
     reliability 255/255, txload 1/255, rxload 1/255 
  Encapsulation 802.1Q Virtual LAN, Vlan ID 3 
  ARP type: ARPA, ARP Timeout 04:00:00,  
  Last clearing of "show interface" counters never 
FastEthernet0/0.3 is up, line protocol is up (connected) 
  Hardware is PQUICC_FEC, address is 00d0.5886.6928 (bia 00d0.5886.6928) 
  Internet address is 192.168.1.22/29 
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,  
     reliability 255/255, txload 1/255, rxload 1/255 
  Encapsulation 802.1Q Virtual LAN, Vlan ID 4 
  ARP type: ARPA, ARP Timeout 04:00:00,  
  Last clearing of "show interface" counters never 
FastEthernet0/0.7 is up, line protocol is up (connected) 
  Hardware is PQUICC_FEC, address is 00d0.5886.6928 (bia 00d0.5886.6928) 
  Internet address is 192.168.1.30/29 
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,  
     reliability 255/255, txload 1/255, rxload 1/255 
  Encapsulation 802.1Q Virtual LAN, Vlan ID 1 
  ARP type: ARPA, ARP Timeout 04:00:00,  
  Last clearing of "show interface" counters never 
 
 
各位大神帮帮忙,小弟感激不尽 
 
 |