R1>ena
R1#conf t
Enter configuration commands, one
per line. End with CNTL/Z.
R1(config)#int g0/1
R1(config-if)#exit
R1(config)#int g0/1.10
R1(config-subif)#en
R1(config-subif)#encapsulation do
R1(config-subif)#encapsulation
dot1Q 10
R1(config-subif)#ip address
172.17.10.1 255.255.255.0
R1(config-subif)#int g0/1.20
R1(config-subif)#encapsulation
dot1Q 20
R1(config-subif)#ip address
172.17.20.1 255.255.255.0
R1(config-subif)#int g0/1.88
R1(config-subif)#encapsulation
dot1Q 88
R1(config-subif)#ip address 172.17.88.1
255.255.255.0
R1(config-subif)#int g0/1.99
R1(config-subif)#encapsulation
dot1Q 99 native
R1(config-subif)#ip address
172.17.99.1 255.255.255.0
R1(config-subif)#exit
R1(config)#int g0/1
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#ip dhcp pool VLAN10
R1(dhcp-config)#default-router
172.17.10.1
R1(dhcp-config)#ip dhcp pool VLAN20
R1(dhcp-config)#default-router
172.17.20.1
R1(dhcp-config)#ip dhcp pool VLAN88
R1(dhcp-config)#default-router
172.17.88.1
R1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address
172.17.10.1 172.17.10.20
R1(config)#ip dhcp excluded-address
172.17.20.1 172.17.20.20
R1(config)#ip dhcp excluded-address
172.17.88.1 172.17.88.10
R1(config)#ip dhcp pool VLAN10
R1(dhcp-config)#network 172.17.10.0
255.255.255.0
R1(dhcp-config)#ip dhcp pool VLAN20
R1(dhcp-config)#network 172.17.20.0
255.255.255.0
R1(dhcp-config)#ip dhcp pool VLAN88
R1(dhcp-config)#network 172.17.88.0
255.255.255.0
R1(dhcp-config)#
S2>ena
S2#conf t
S2(config-if)#int vlan 99
S2(config-if)#ip add 172.17.99.32
255.255.255.0
S2(config-if)#exit
S2(config)#ip default-gateway
172.17.99.1
S2(config)#
S2(config-vlan)#vlan 999
S2(config-vlan)#name Blackhole
S2(config-vlan)#exit
S2(config)#
S2(config)#spanning-tree mode
rapid-pvst
S2(config)#
S2(config)#end
S2#show
spanning-tree
S2#conf t
S2(config-if-range)#int range
fa0/1-4
S2(config-if-range)#switchport mode
trunk
S2(config-if-range)#switchport
trunk native vlan 99
S2(config-if-range)#exit
S2(config)#int fa0/7
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan
88
S2(config-if)#int fa0/18
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan
20
S2(config-if)#int fa0/11
S2(config-if)#switchport mode access
S2(config-if)#switchport access vlan
10
S2(config)#int range fa0/5-6,
fa0/8-10, fa0/12-17, fa0/19-24, g0/1-2
S2(config-if-range)#switchport mode
access
S2(config-if-range)#switchport
access vlan 999
S2(config-if-range)#shutdown
S2(config-if-range)#end
S2#
Tidak ada komentar:
Posting Komentar