SGS-6341-Series User Manual

Table Of Contents
Switch(Config-if-Vlan2)#ip addre
ss 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:
Figure 31-4: DHCP configuration example
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
address of interface VLAN1 as 192.168.40.50, configure the address of DHCP Relay
forwarding as 192.168.40.199, configure VLAN3 as a sub-VLAN of VLAN1. The configuration
is as follows:
switch(config)#vlan 1
switch(config)#vlan 3
switch(config)#interface ethernet 1/2
Switch(Config-If-Ethernet1/2)#switchport access vlan 3
switch(config)#interface ethernet 1/3
Switch(Config-If-Ethernet1/2)#switchport mode trunk
switch(config)#service dhcp
switch(config)#ip forward-protocol udp bootps
31-68
User’s Manual of SGS-6341 series