ex9d_R4_VLAN_DHCP_byServer

ex9d_R4_VLAN_DHCP_byServer

Router

First do it on everyone Router

1
2
3
4
5
enable
erase startup-config
################# do it one by one ################# do it one by one ################# do it one by one #################
reload
################# do it one by one ################# do it one by one ################# do it one by one #################

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
26
27
28
29
30
enable
configure terminal
hostname R1
interface FastEthernet 0/0
no shutdown
interface FastEthernet 0/0.2xy
encapsulation dot1Q 2xy
ip address 172.16.202.1 255.255.255.0
ip helper-address 200.200.200.200
interface FastEthernet 0/0.2xy+1
encapsulation dot1Q 2xy+1
ip address 172.16.201.1 255.255.255.0
ip helper-address 200.200.200.200
interface FastEthernet 0/0.3xy
encapsulation dot1Q 3xy
ip address 192.168.3.1 255.255.255.0
ip helper-address 200.200.200.200
interface Serial0/3/0
ip address 10.255.255.22 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
network 192.168.3.0 0.0.0.255 area xy
network 172.16.201.0 0.0.0.255 area xy
network 172.16.202.0 0.0.0.255 area xy
network 10.255.255.16 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
18
19
20
enable
configure terminal
hostname R3
interface FastEthernet 0/0
no shutdown
interface FastEthernet 0/0.4xy
encapsulation dot1Q 4xy
ip address 200.200.200.1 255.255.255.0
ip helper-address 200.200.200.200
interface Serial0/2/0
ip address 10.255.255.21 255.255.255.248
clock rate 1000000
no shutdown
exit
router ospf xy
network 200.200.200.0 0.0.0.255 area xy
network 10.255.255.16 0.0.0.7 area xy
exit
exit
copy running-config startup-config

Switch

First do it on everyone Switch

1
2
3
4
5
6
7
enable
erase startup-config
################# do it one by one ################# do it one by one ################# do it one by one #################
delete vlan.dat
################# do it one by one ################# do it one by one ################# do it one by one #################
reload
################# do it one by one ################# do it one by one ################# do it one by one #################

SW1A

1
2
3
4
5
6
7
8
9
10
11
12
13
14
enable
configure terminal
interface range FastEthernet 0/1-4
channel-group 1 mode on
switchport mode trunk
interface port-channel 1
switchport mode trunk
interface range FastEthernet0/11-12
switchport access vlan 1xy+1
interface range FastEthernet0/13-14
switchport access vlan 1xy
exit
exit
copy running-config startup-config

SW0

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
26
enable
configure terminal
vlan 2xy+1
exit
interface range FastEthernet0/1-4
channel-group 1 mode on
switchport mode trunk
switchport trunk allowed vlan 2xy-2xy+1
interface port-channel 1
switchport mode trunk
switchport trunk allowed vlan 2xy-2xy+1
interface range FastEthernet0/11
switchport access vlan 2xy
interface range FastEthernet0/15-16
switchport access vlan 3xy
interface range FastEthernet0/20-21
switchport access vlan 4xy
interface range FastEthernet0/22
switchport mode trunk
switchport trunk allowed vlan 4xy
interface FastEthernet0/24
switchport trunk allowed vlan 2xy-2xy+1,3xy
switchport mode trunk
exit
exit
copy running-config startup-config
文章目錄
  1. 1. Router
  2. 2. First do it on everyone Router
    1. 2.1. R1
    2. 2.2. R3
  3. 3. Switch
  4. 4. First do it on everyone Switch
    1. 4.1. SW1A
    2. 4.2. SW0
,