29 lines
528 B
Plaintext
29 lines
528 B
Plaintext
enable
|
|
conf t
|
|
ip routing
|
|
ip route 0.0.0.0 0.0.0.0 <R5 int>
|
|
vlan 10
|
|
name VLAN_A
|
|
vlan 20
|
|
name VLAN_B
|
|
interface Vlan10
|
|
ip address 192.168.1.1 255.255.255.0
|
|
ip helper-address 192.168.100.100
|
|
no shut
|
|
interface Vlan20
|
|
ip address 192.168.2.1 255.255.255.0
|
|
ip helper-address 192.168.100.100
|
|
no shut
|
|
interface g0/0
|
|
switchport mode access
|
|
switchport access vlan 10
|
|
no shutdown
|
|
interface g0/1
|
|
switchport mode access
|
|
switchport access vlan 20
|
|
no shutdown
|
|
interface g0/2
|
|
switchport mode trunk
|
|
switchport trunk allowed vlan 10,20
|
|
no shutdown
|