Planet WGSW-52040 Configuration Manual page 261

48-port 10/100/1000base-t + 4-port 100/1000x sfp managed switch
Hide thumbs Also See for WGSW-52040:
Table of Contents

Advertisement

Switch(config)#service dhcp
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip address 192.168.1.1 255.255.255.0
Switch(Config-if-Vlan1)#exit
Switch(config)#vlan 2
Switch(Config-Vlan-2)#exit
Switch(config)#interface Ethernet 1/2
Switch(Config-Erthernet1/2)#switchport access vlan 2
Switch(Config-Erthernet1/2)#exit
Switch(config)#interface vlan 2
Switch(Config-if-Vlan2)#ip address 10.1.1.1 255.255.255.0
Switch(Config-if-Vlan2)#exit
Switch(config)#ip forward-protocol udp bootps
Switch(config)#interface vlan 1
Switch(Config-if-Vlan1)#ip help-address 10.1.1.10
Switch(Config-if-Vlan1)#exit
Note: It is recommended to use the combination of command ip forward-protocol udp
<port> and ip helper-address <ipaddress>. ip help-address can only be configured for
ports on layer 3 and cannot be configured on layer 2 ports directly.
Scenario 3:
As shown in the above figure, PC1 is DHCP client, obtain the address through DHCP. Switch1
is a layer 2 access device, it enables DHCP Relay and option82 functions, Ethernet1/2 is a
access port, belongs to vlan3, Ethernet1/3 is a trunk port, connects to DHCP Server, DHCP
Server address is 192.168.40.199. Switch1 creates vlan1 and interface vlan1, configure IP
Figure 31-4: DHCP configuration example
31-40

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents