3 assigning ip address to network interface, 4 static route and default gateway, Assigning ip address to network interface – Siemens S223 User Manual
Page 58: Static route and default gateway
UMN:CLI User Manual
SURPASS hiD 6615 S223/S323 R1.5
58 A50010-Y3-C150-2-7619
4.3.3 Assigning
IP
Address to Network Interface
After enabling interface, you need to assign IP address. To assign IP address to specified
network interface, use the following command.
Command Mode
Description
ip address
IP-ADDRESS/M
Assigns IP address to an interface.
ip address
IP-ADDRESS/M secondary
Interface
Assigns secondary IP address to an
interface.
To disable the assigned IP address, use the following command.
Command Mode
Description
no ip address
IP-ADDRESS/M
Removes assigned IP address to an interface.
no ip address
IP-ADDRESS/M
secondary
Interface
Removes assigned secondary IP address to an inter-
face.
To display an assigned IP address, use the following command.
Command Mode
Description
show ip
Interface
Shows an assigned IP address of the interface.
4.3.4
Static Route and Default Gateway
It is possible to configure the static route. Static route is a route which user configures
manually. Packets are transmitted to the destination through static route. Static route in-
cludes destination address, neighbor router to receive packet, the number of routes that
packets have to go through.
To configure static route, use the following command.
Command Mode
Description
ip route A.B.C.D SUBNET-MASK
{GATEWAY | null} [<1-255>]
ip route A.B.C.D/M
{ SUBNET-MASK | null} [<1-
255> | src IP-ADDRESS]
Configures static route.
A.B.C.D: destination IP prefix
GATEWAY: Ip gateway address
1-255: Distance value
no ip route A.B.C.D SUBNET-MASK
{ GATEWAY | null} [<1-255>]
no ip route IP-ADDRESS/M
{ SUBNET-MASK | null} [<1-255>]
Global
Deletes configured static route.
To configure default gateway, use the following command on Global Configuration mode.
Command Mode
Description
ip route default
{ GATEWAY | null} [<1-255>]
Configures default gateway.
GATEWAY: Ip gateway address
no ip route default
{ GATEWAY | null} [<1-255>]
Global
Deletes default gateway.