Vitesse: 74xx switch VLAN configuration and Testing 1: System and software version System> ConfigurationSystem Contact: System Name: System Location: MAC Address: 00-01-c1-00-00-00Chip ID: VSC7460System Time: 1970-01-01T00: 45: 15 + 00: 00 System Uptime: 00: 45: 15 Software Version: CEServices (standalone) Version 3.20 _ BETA Build 731712 Software Date: 2013-02-11T11: 35: 06 + 01: 00 Previous Restart: ColdSystem> VersionVersion: CEServices (standalone) Vers Ion 3.20 _ BETA Build 731712 Build Date: 2013-02-11T11: 35: 06 + 01: 00 Code Revision: 08366c3ef7de2: system default vlan and ip configuration ################################## ######################################## ### Port PVID Frame Type Ingress Filter Tx Tag Port Type ---- ---------- -------------- ----------------- 1 1 All Disabled Untag PVID Unaware 2 1 All Disabled Untag PVID Unaware 3 1 All Disabled Untag PVID Una Ware 4 1 All Disabled Untag PVID Unaware 5 1 All Disabled Untag PVID Unaware 6 1 All Disabled Untag PVID Unaware vid vlan Name Ports ---- Ports ----- 1 default 1-29IP> confiMode: routervlan1: mtu = 1500 IPv4 = 192.0.2.1/243: VLAN configuration ###################################### ######################################## VLANVLAN> confiVLAN Configuration after Configuration: =========================== Port PVID Frame Type Ingress Filter Tx Tag Port Type ---- ---------- ------------ ---------- average 1 1 All Disabled Untag PVID Unaware 2 2 All Disabled Untag PVID Unaware 3 2 All Disabled Untag PVID Unaware 4 3 All Disabled Untag All unaware 5 3 Tagged Disabled Tag All C-Port 6 3 Tagged Disabled Tag All C-Port 7 1 All Disabled Untag PVID Unaware 8 1 All Disabled Untag PVID Unaware 9 1 All Disabled Untag PVID Unaware 10 1 All Disabled Untag PVID Unaware 11 1 All Disabled Untag PVID Unaware 12 1 All Disabled Untag PVID Unaware 13 1 All Disabled Untag PVID Unaware 14 1 All Disabled Untag PVID Unaware 15 1 all Disabled Untag PVID Unaware 16 1 All Disabled Untag PVID Unaware 17 1 All Disabled Untag PVID Unaware 18 1 All Disabled Untag PVID Unaware 19 1 All Disabled Untag PVID Unaware 20 1 All D Isabled Untag PVID Unaware 21 1 All Disabled Untag PVID Unaware 22 1 All Disabled Untag PVID Unaware 23 1 All Disabled Untag PVID Unaware 24 1 All Disabled Untag PVID Unaware 25 1 All Disabled Untag PVID Unaware 1 All Disabled Untag PVID Unaware 27 1 All Disabled Untag PVID Unaware 28 1 All Disabled Untag PVID Unaware 29 1 All Disabled Untag PVID Unaware vid vlan Name Ports -------------------- ---------------- ----- 1 default 1-292 testVlan2 testVlan3 4-6 //, 6 is the same vlan vid vlan Name Ports ---- Ports ----- VLAN forbidden table is emptyVLAN> PortType 2 c-port4: IP Address Configuration ###################################### ######################################## ##### Interface add 2 // first add interface, VLANID. Address 2 192.168.10.2/24 // set an IP address for this vlan id. IP> confiMode: routervlan1: mtu = 1500 IPv4 = 192.168.1.2/24vlan2: mtu = 1500 IPv4 = 192.168.10.2/24vlan3: mtu = 1500 IPv4 = 192.168.100.3/24ping command format: IP ping 192.168.100.141 L 100 C 50 I 2IP ping 192.168.10.102 L 100 C 50 I 2IP ping 192.168.1.101 L 100 C 50 I 25: configuration and data package ################################## ######################################## ########## ifconfig eth0 upvconfig add eth0 2 vconfig add eth0 3 ifconfig eth0.2 hw ether 00: 03: 7F: FF: F1 upifconfig eth0.3 hw ether 00: 03: 7F: FF: f2 upifconfig eth0 paiifconfig eth0.2 paieth0.3 192.168.100.103/# ifconfig eth0 Link encap: Ethernet HWaddr 00: 03: 7F: FF inet addr: paibcast: 10.20.255 Mask: 255.0.0.0 inet6 addr: fe80: 203: 7fff: feff: ffff/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 1164 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 275 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000 RX bytes: 137246 (134.0 KiB) TX bytes: 22332 (21.8 KiB) eth0.2 Link encap: Ethernet HWaddr 00: 03: 7F: FF: F1 inet addr: 192.168.10.102 Bcast: 192.168.10.255 Mask: 255.255.255.0 inet6 addr: fe80: 203: 7fff: feff: fff1/64 Scope: Link up broadcast running multicast mtu: 150 0 Metric: 1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 6 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 0 (0.0 B) TX bytes: 492 (492.0 B) eth0.3 Link encap: Ethernet HWaddr 00: 03: 7F: FF: F2 inet addr: 192.168.100.103 Bcast: 192.168.100.255 Mask: 255.255.255.0 inet6 addr: fe80: 203: 7fff: feff: fff2/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 575 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 269 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 47925 (46.8 KiB) TX bytes: 20590 (20.1 KiB) lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr: 1/128 Scope: host up loopback running mtu: 16436 Metric: 1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 0 errors: 0 dropp Ed: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 0 (0.0 B) TX bytes: 0 (0.0 B) capture the following packet on the power bridge: /# tcpdump-I eth0-xxvv/# tcpdump-I eth0-nnxx // The following is the packet tcpdump with VLAN ICMP: WARNING: can't create rx ring on packet socket 3: 99-Protocol not availabletcpdump: verbose output suppressed, use-v or-vv for full protocol decodelistening on eth0, link-type EN10MB (Ethernet), capture size 68 bytes00: 34: 42.875399 IP 192.168.100.73> 192.168.100.103: ICMP echo request, id 256, seq 58903, length 40 0 0x0000: 0003 7fff fff2 d4be d90a 270c 8100 0003 0x0010: 0800 4500 003c bc19 0000 4001 74a6 c0a8 0x0020: 6449 c0a8 6467 0800 6644 0100 e617 6162 0x0030: 6364 6566 6768 696a 6b6c 6d6e 6f70 7172 0x0040: 7374 757600: 34: 42.876219 IP 192.168.100.103> 192.168.100.73: ICMP echo reply, id 256, seq 58903, len Listen 40 0x0000: d4be d90a 270c 0003 7fff fff2 8100 0003 0x0010: 0800 4500 003c ff95 0000 4001 312a c0a8 0x0020: 6467 c0a8 6449 0000 6e44 0100 e617 6162 0x0030: 6364 6566 696a 6b6c 6d6e 6f70 6768 0x7172: 0040 7374 --------------------------------- ARP packet with TAG expires 00:33:33. 878399 ARP, Request who-has 192.168.100.103 tell 192.168.100.73, length 46 0x0000: ffff Ff ffff d4be d90a 270c 8100 0003 0010 0x0806: 0001 0800 0604 0001 d4be d90a 270c 0x0020: c0a8 6449 0000 0000 c0a8 0000 6467 0x0000: 0000 0000 0000 0000 0000 0000. 878485 ARP, Reply 192.168.100.103 is-at 00: 03: 7f: ff: f2, length 28 0 0x0000: d4be d90a 270c 0003 7fff fff2 8100 0003 0010 0 x: 0806 0001 0800 0604 0002 0003 7fff fff2 0x0020: c0a8 6467 d4be d90a 270c c0a8 6449 in the above test: Yes Ping the IP address 192.168.100.103 above the bridge on host 192.168.100.73. The vitesse port is port4. the vitesse port connected by the bridge is port5 or port6. Other methods cannot be pingt-enabled. The preceding data packet shows that when the data passes through port5 or port6, the data packet is tagged. 6: analysis of other VLAN groups #################################### ######################################## ######## the IP address in this item has been adjusted. VLAN2 and VLAN1 are not configured. IP> confMode: routervlan1: mtu = 1500vlan2: mtu = 1500vlan3: mtu = 1500 IPv4 = 192.168.100.3 when setting IP addresses at the same time, however, when you need to access the vitesse switch through telnet, you need to set an IP address. The VLAN configuration remains unchanged. We can see from the above VLAN configuration that we have configured three VLANs: VLAN1, VLAN2, and VLAN3. The port allocation is as follows: ---- ------------------------------ ----- 1 default 1-292 testVlan2 testVlan3 4-6 //, 6 is the same VLAN, port2 and port3 belong to VLAN2, port4 ~ Port5 belongs to vlan3. Here, default has no actual meaning. Only the port time of the same VLAN group can be used for communication. The following data packet is: when the pC and the bridge are connected to port2 and port3 respectively. Or remove port2 ~ Data packets other than port6. The IP address of the PC is 192.168.10.73/# ifconfig eth0 Link encap: Ethernet HWaddr 00: 03: 7F: FF inet addr: 192.168.10.102 Bcast: 192.168.10.255 Mask: 255.255.255.0 inet6 addr: fe80: 203: 7fff: feff: ffff/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 5672 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 2317 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000 RX bytes: 641808 (626.7 KiB) TX bytes: 188376 (183.9 KiB) eth0.2 Link encap: Ethernet HWaddr 00: 03: 7F: FF: F1 inet6 addr: fe80 :: 203: 7fff: feff: fff1/64 Scope: link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 0 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 42 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 0 (0.0 B) TX bytes: 2148 (2.0 KiB) eth0.3 Link encap: Ethernet HWaddr 00: 03: 7F: FF: FF: F2 inet addr: 192.168.100.103 Bcast: 192.168.100.255 Mask: 255.255.255.0 inet6 addr: fe80: 203: 7fff: feff: fff2/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 1044 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 707 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 87325 (85.2 KiB) TX bytes: 58034 (56.6 KiB) lo Link encap: Local Loopback inet addr: 127.0.0.1 Mask: 255.0.0.0 inet6 addr: 1/128 Scope: host up loopback running mtu: 16436 Metric: 1 RX packets: 131 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 131 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 0 RX bytes: 14816 (14.4 KiB) TX bytes: 14816 (14.4 KiB)/# tcpdump-I eth0-xxvvtcpdump: WARNING: can't create rx ring on packet socket 3: 99-Protocol not availabletcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 68 bytes01: 30: 50.025429 IP (tos 0x0, ttl 64, id 7102, offset 0, flags [none], proto ICMP (1), length 60) 192.168.10.73> 192.168.10.102: ICMP echo request, id 256, seq 28170, length 40 0x0000: 0003 7fff ffff d4be d90a 270c 0800 4500 0x0010: 003c 1bbe 0000 4001 c903 c0a8 0a49 c0a8 0x0020: 0a66 0800 de51 0100 6e0a 6162 6364 6566 0x0030: 6768 696a 6b6c 6d6e 6f70 7172 7374 7576 0x0040: 7761 626301: 30: 50.053645 IP (tos 0x0, ttl 64, id 22176, offset 0, flags [none], proto ICMP (1), length 60) 192.168.10.102> 192.168.10.73: ICMP echo reply, id 256, seq 28170, length 40 0x0000: d4be d90a 270c 0003 7fff ffff 0800 4500 0x0010: 003c 56a0 0000 4001 8e21 c0a8 0a66 c0a8 0x0020: 0a49 0000 e651 0100 6e0a 6162 6364 0x6566: 6768 696a 6b6c 6d6e 6f70 7172 7374 7576 0x0040: 7761 626302: 11: 09.345741 STP 802.1 s, Rapid STP, CIST Flags [Proposal, Learn, Forward, Agreement], CIST bridge-id 6469.73: 63: 61: 72: 64: 00.8005, length 102 message-age 0.00 s, max-age 20.00 s, hello-time 2.00 s, forwarding-delay 15.00 s CIST root-id 8000.00: 01: c1: 00: 00: 00, ext-pathcost 0 int-pathcost 17, port-role Designated CIST regional-root-id 8000.00: 01: c1: 00: 00: 00 MSTP Configuration Name 00-01-c1-00-, revision 16, digest 2017001164697361726400100bb2a0 CIST remaining-hops 0 0 0x0000: 0180 c200 0000 0001 c100 0005 0069 0x4242: 0010 0300 027e 0003 c100 8000 0001 0x0000: 0000 8000 0001 c100 0000 8005 0000 0x1400: 0030 0f00 0200 0000 4000 2d30 312d 3030 0x6331: 2d30 302d