
ShellScript
# KINHDOANH Layer3
vlan 30
ip add 162.168.3.1 255.255.255.0
int rang f0/1-23
sw mode access
sw access vlan 30
int f0/24
no sw
ip add 10.10.10.249 255.255.255.0
ip routing
ip route 172.168.3.0 255.255.255.0 10.10.10.250ShellScript
# SWPHONGBAN Layer3
vlan 10 20
vlan 10
ip add 192.168.3.1 255.255.255.0
vlan 20
ip add 172.168.3.1 255.255.255.0
int rang f0/1-2
sw mode trunk
sw trunk encap dot1q
no sh
int f0/24
no sw
ip add 10.10.10.250 255.255.255.0
ip routing
ip route 162.168.3.0 255.255.255.0 10.10.10.249