21
2.5.4 IP Command
Configure IP address and related settings such as DHCP snooping and IGMP snooping.
1. Set up or remove the IP address of the Gateway Controller.
IP command
Parameter
Description
ICPE(config)# ip
address [A.B.C.D]
[255.X.X.X]
[A.B.C.D]
[A.B.C.D]
Enter the desired IP address for the Gateway Controller.
[255.X.X.X]
Enter subnet mask of your IP address.
[A.B.C.D]
Enter the default gateway address.
ICPE(config)# ip
dhcp snooping
Enable DHCP Snooping function
ICPE(config)# ip
dhcp snooping
dhcp-server
[port_list]
[port_list]
Specify DHCP server trust ports.
ICPE(config)# ip
name-server
server1 [A.B.C.D]
[A.B.C.D]
Specify IP Address for Domain Name System (DNS)
Server 1
ICPE(config)# ip
name-server
server2 [A.B.C.D]
[A.B.C.D]
Specify IP Address for Domain Name System (DNS)
Server 2
No command
ICPE(config)# no ip address
Remove the Gateway Controller’s IP address.
ICPE(config)# ip name-server
server1
Remove IP Address of Domain Name System (DNS)
Server 1
ICPE(config)# ip name-server
server2
Remove IP Address of Domain Name System (DNS)
Server 2
Show command
ICPE(config)# show ip address
Show the current IP configurations or verify the configured
IP settings.
ICPE(config)# show ip name-server
Show the current configured DNS IP address
IP command example
ICPE(config)# ip address
192.168.1.198 255.255.255.0
192.168.1.254
Set up the Gateway Controller’s IP to 192.168.1.198,
subnet mask to 255.255.255.0, and default gateway to
192.168.1.254.
2. Enable the Gateway Controller to automatically get IP address from the DHCP server.
Command / Example
Description
ICPE(config)# ip address dhcp
Enable DHCP mode.
No command
ICPE(config)# no ip address dhcp
Disable DHCP mode.
Show command