Ip ipadd, Ip commands, Syntax – Technicolor - Thomson ST585 V6 User Manual

Page 467: Example: related commands

Advertising
background image

E-DOC-CTC-20061027-0004 v1.0

IP Commands

443

ip ipadd

Assign an IP address to an IP interface.

SYNTAX:

where:

EXAMPLE:

RELATED COMMANDS:

ip ipadd

intf = <string>
addr = <ip-address>
[netmask = <ip-mask(dotted or cidr)>]
[pointopoint = <ip-address>]
[addroute = <{disabled | enabled}>]

intf

The IP interface name.

REQUIRED

addr

The new IP address to be added.

REQUIRED

netmask

The subnetmask associated with this address.

OPTIONAL

pointopoint

The remote IP address in case of a dedicated point-to-point link.

OPTIONAL

addroute

Add typical net/subnet routes automatically according to the default (or
specified) subnet mask (enabled) or not (disabled).
The default is

disabled

.

OPTIONAL

=>ip iplist
Interface

Type

IP-address

Point-to-point/Mask

1

eth0

Ethernet

10.0.0.138

255.255.255.0

1

eth0

Ethernet

169.254.141.11

255.255.0.0

0

loop

Ethernet

127.0.0.1

255.0.0.0

=>ip ipadd intf=eth0 addr=10.0.0.2/24 addroute=enabled
=>ip iplist
Interface

Type

IP-address

Point-to-point/Mask

1

eth0

Ethernet

10.0.0.2

255.255.255.0

1

eth0

Ethernet

10.0.0.138

255.255.255.0

1

eth0

Ethernet

169.254.141.11

255.255.0.0

0

loop

Ethernet

127.0.0.1

255.0.0.0

=>

ip ipdelete

Remove an IP address from an IP interface.

ip iplist

Display all the configured IP addresses.

Advertising