interface vlan 20
ip helper-address 192.168.30.2
configure terminal
vlan 10,20,30
exit
vlan 10
name vlan10
exit
vlan 20
name vlan20
exit
vlan 30
name vlan30
exit
end
configure terminal
interface ethernet 1/0/2
switchport mode access
switchport access vlan 10
acceptable-frame admit-all
end
configure terminal
interface ethernet 1/0/3
switchport mode access
switchport access vlan 20
acceptable-frame admit-all
end
configure terminal
interface ethernet 1/0/4
switchport mode access
switchport access vlan 30
acceptable-frame admit-all
end
configure terminal
no interface vlan 1
interface vlan 10
ip address 192.168.10.1 255.255.255.0
exit
interface vlan 20
ip address 192.168.20.1 255.255.255.0
ip helper-address 192.168.30.2
exit
interface vlan 30
ip address 192.168.30.1 255.255.255.0
exit
end
configure terminal
ip forward-protocol udp 37
ip forward-protocol udp 42
ip forward-protocol udp 49
ip forward-protocol udp 53
ip forward-protocol udp 69
ip forward-protocol udp 137
ip forward-protocol udp 138
end
configure terminal
ip dhcp pool vlan_pool
exit
service dhcp
end
configure terminal
interface vlan 10
exit
interface vlan 20
exit
interface vlan 30
exit
end
configure terminal
ip route 0.0.0.0 0.0.0.0 192.168.30.2 primary
ip dhcp local-relay vlan 1-4094
end