ex9c_VLAN_Trunk

ex9c_VLAN_Trunk

Router

R1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
enable
configure terminal
hostname R1
interface FastEthernet 0/0
no shutdown
interface FastEthernet 0/0.1xy
encapsulation dot1Q 1xy
ip address 192.168.1.1 255.255.255.0
ip helper-address 99.99.99.99
interface FastEthernet 0/0.2xy
encapsulation dot1Q 2xy
ip address 192.168.2.1 255.255.255.0
ip helper-address 99.99.99.99
interface Serial0/3/0
ip address 10.255.255.6 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
network 192.168.1.0 0.0.0.255 area xy
network 192.168.2.0 0.0.0.255 area xy
network 10.255.255.0 0.0.0.7 area xy
exit
exit
copy running-config startup-config

R3

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
enable
configure terminal
hostname R3
interface FastEthernet 0/0
ip address 99.99.99.1 255.255.255.0
no shutdown
interface Serial0/2/0
ip address 10.255.255.5 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
network 99.99.99.0 0.0.0.255 area xy
network 10.255.255.0 0.0.0.7 area xy
exit
exit
copy running-config startup-config

Switch

SW0

1
2
3
4
5
6
7
8
9
10
11
enable
configure terminal
interface range FastEthernet0/1-10
switchport access vlan 1xy
interface range FastEthernet0/11-20
switchport access vlan 2xy
interface FastEthernet0/24
switchport mode trunk
exit
exit
copy running-config startup-config
文章目錄
  1. 1. Router
    1. 1.1. R1
    2. 1.2. R3
  2. 2. Switch
    1. 2.1. SW0
,