CANOGA PERKINS 9175 Configuration Guide User Manual
Page 239
CanogaOS Configuration Guide
36-2
Linux boxes and one Switch to construct the test bed.
Computer A is used as DHCP server.
Computer B is used as DHCP client.
Switch A is used as DHCP relay agent.
36.1.5 Configurations
Configure interface eth-0-12
DUT#configure terminal
Enter the Configure mode.
DUT(config)#interface eth-0-12
Enter the Interface Configure mode.
DUT(config-if)#no switchport
Change the port to L3 port.
DUT(config-if)#ip address 4.4.4.2/24
Set ip address.
DUT(config-if)#no shutdown
Make sure the port is enabled.
DUT(config-if)#exit Exit
the
Interface Configure mode.
Configure DHCP server groups
DUT(config)#dhcp-server 1 4.4.4.1
Create a dhcp-server group.
Configure interface eth-0-1
DUT(config)#interface eth-0-1
Enter the Interface Configure mode.
DUT(config-if)#no switchport
Change the port to L3 port.
DUT(config-if)#ip address 5.5.5.2/24
Set ip address.
DUT(config-if)#no shutdown
Make sure the port is enabled.
DUT(config-if)#dhcp relay information trusted
Set interface to dhcp relay trusted.
DUT(config-if)#dhcp-server 1
Specify the dhcp server.
DUT(config-if)#exit Exit
the
Interface Configure mode.
Enable DHCP Relay global service
DUT(config)#service dhcp enable
Enable dhcp services.
DUT(config)#dhcp relay
Enable dhcp relay feature.
36.1.6 Validation
Commands
Check the interface configuration
DUT# show running-config interface eth-0-12
!
interface eth-0-12
no switchport
ip address 4.4.4.2/24
!
DUT# show running-config interface eth-0-1
!
interface eth-0-1
no switchport
dhcp relay information trusted
dhcp-server 1