PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:vlan-trunk-port-configuration:vlan-trunk-port-configuration

This is an old revision of the document!


VLAN Trunk Port Configuration

Home Physical Lab Topologies

ASW2

f0/1
Pi2

f0/3
Pi3

DSW2
f1/0/24
SAK
DSW2#sh vlan bri

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0/1, Fa1/0/2, Fa1/0/3
                                                Fa1/0/4, Fa1/0/5, Fa1/0/6
                                                Fa1/0/7, Fa1/0/8, Fa1/0/9
                                                Fa1/0/10, Fa1/0/11, Fa1/0/12
                                                Fa1/0/13, Fa1/0/14, Fa1/0/15
                                                Fa1/0/16, Fa1/0/17, Fa1/0/18
                                                Fa1/0/19, Fa1/0/20, Fa1/0/21
                                                Fa1/0/22, Fa1/0/23, Fa1/0/24
                                                Gi1/0/1, Gi1/0/2
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
ASW2#sh vlan bri

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Gi0/1
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
✘╹◡╹✘  18-03-10 13:47:59 /home/wnoguchi
% fping -f lab-net-iplist.txt
172.16.2.12 is alive
172.16.2.13 is alive
172.16.2.240 is alive
172.16.2.250 is alive
en
conf t
vlan 10
name Engineer
vlan 20
name Network
end
en
conf t
vlan 10
name Engineer
vlan 20
name Network
vlan 30
name Lab
end
DSW2#sh vlan bri

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1/0/1, Fa1/0/2, Fa1/0/3
                                                Fa1/0/4, Fa1/0/5, Fa1/0/6
                                                Fa1/0/7, Fa1/0/8, Fa1/0/9
                                                Fa1/0/10, Fa1/0/11, Fa1/0/12
                                                Fa1/0/13, Fa1/0/14, Fa1/0/15
                                                Fa1/0/16, Fa1/0/17, Fa1/0/18
                                                Fa1/0/19, Fa1/0/20, Fa1/0/21
                                                Fa1/0/22, Fa1/0/23, Fa1/0/24
                                                Gi1/0/1, Gi1/0/2
10   Engineer                         active
20   Network                          active
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
ASW2#sh vlan bri

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                                Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                                Gi0/1
10   Engineer                         active
20   Network                          active
30   Lab                              active
1002 fddi-default                     act/unsup
1003 token-ring-default               act/unsup
1004 fddinet-default                  act/unsup
1005 trnet-default                    act/unsup
conf t
int f1/0/24
switchport mode access
switchport access vlan 10
int f1/0/23
switchport mode access
switchport access vlan 20
int f1/0/8
switchport trunk encapsulation dot1q
switchport mode trunk
switchport nonegotiate
end
conf t
int f0/1
switchport mode access
switchport access vlan 10
int f0/2
switchport mode access
switchport access vlan 20
int f0/3
switchport mode access
switchport access vlan 30
int f0/5
switchport mode access
switchport access vlan 30
int f0/8
switchport mode trunk
switchport nonegotiate
end

VLAN 10@SAK

✘╹◡╹✘  18-03-11 13:55:57 /home/wnoguchi
% ping -c1 172.16.2.240
PING 172.16.2.240 (172.16.2.240) 56(84) bytes of data.
From 172.16.2.245 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.240 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

✘╹◡╹✘  18-03-11 13:56:12 /home/wnoguchi
% ping -c1 172.16.2.11
PING 172.16.2.11 (172.16.2.11) 56(84) bytes of data.
64 bytes from 172.16.2.11: icmp_seq=1 ttl=64 time=1.44 ms

--- 172.16.2.11 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.449/1.449/1.449/0.000 ms
✘╹◡╹✘  18-03-11 13:56:15 /home/wnoguchi
% ping -c1 172.16.2.12
PING 172.16.2.12 (172.16.2.12) 56(84) bytes of data.
From 172.16.2.245 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.12 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

✘╹◡╹✘  18-03-11 13:56:24 /home/wnoguchi
% ping -c1 172.16.2.13
PING 172.16.2.13 (172.16.2.13) 56(84) bytes of data.
From 172.16.2.245 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.13 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

✘╹◡╹✘  18-03-11 13:56:29 /home/wnoguchi
% ping -c1 172.16.2.250
PING 172.16.2.250 (172.16.2.250) 56(84) bytes of data.
From 172.16.2.245 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.250 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

VLAN 20@Desktop

C:\Users\wnogu>ping -n 1 172.16.2.245

Pinging 172.16.2.245 with 32 bytes of data:
Reply from 172.16.2.240: Destination host unreachable.

Ping statistics for 172.16.2.245:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\wnogu>ping -n 1 172.16.2.11

Pinging 172.16.2.11 with 32 bytes of data:
Reply from 172.16.2.240: Destination host unreachable.

Ping statistics for 172.16.2.11:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\wnogu>ping -n 1 172.16.2.12

Pinging 172.16.2.12 with 32 bytes of data:
Reply from 172.16.2.12: bytes=32 time<1ms TTL=64

Ping statistics for 172.16.2.12:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\Users\wnogu>ping -n 1 172.16.2.13

Pinging 172.16.2.13 with 32 bytes of data:
Reply from 172.16.2.1: Destination host unreachable.

Ping statistics for 172.16.2.13:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

C:\Users\wnogu>ping -n 1 172.16.2.250

Pinging 172.16.2.250 with 32 bytes of data:
Reply from 172.16.2.1: Destination host unreachable.

Ping statistics for 172.16.2.250:
    Packets: Sent = 1, Received = 1, Lost = 0 (0% loss),

VLAN 30@Pi0

pi@raspberrypi:~ $ ping -c1 172.16.2.245
PING 172.16.2.245 (172.16.2.245) 56(84) bytes of data.
From 172.16.2.250 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.245 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

pi@raspberrypi:~ $ ping -c1 172.16.2.240
PING 172.16.2.240 (172.16.2.240) 56(84) bytes of data.
From 172.16.2.250 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.240 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

pi@raspberrypi:~ $ ping -c1 172.16.2.11
PING 172.16.2.11 (172.16.2.11) 56(84) bytes of data.
From 172.16.2.250 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.11 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

pi@raspberrypi:~ $ ping -c1 172.16.2.12
PING 172.16.2.12 (172.16.2.12) 56(84) bytes of data.
From 172.16.2.250 icmp_seq=1 Destination Host Unreachable

--- 172.16.2.12 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

pi@raspberrypi:~ $ ping -c1 172.16.2.13
PING 172.16.2.13 (172.16.2.13) 56(84) bytes of data.
64 bytes from 172.16.2.13: icmp_seq=1 ttl=64 time=1.18 ms

--- 172.16.2.13 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.185/1.185/1.185/0.000 ms

let's start wireshark session.

monitor session 1 source interface FastEthernet 1/0/8
monitor session 1 destination interface FastEthernet 1/0/13

set the port native vlan id.

int f1/0/8
switchport trunk native vlan 999
end
int f0/8
switchport trunk native vlan 999
end
int f1/0/8
switchport trunk allowed vlan 10,20
end
int f0/8
switchport trunk allowed vlan 10,20
end
tech/network/vlan-trunk-port-configuration/vlan-trunk-port-configuration.1520746568.txt.gz · Last modified: 2018/03/11 14:36 by wnoguchi