○
○
○
○
○
A- Commonly Used Commands
A-4
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
○
Example:
ip device add wan ptp //bun/port=atm/rfc1483=true/mode=llcrouted/
txvpi=
0
/txvci=
35
/rxvpi=
0
/rxvci=
35
202.166.29.154
(all in one line)
A.1.4
ip device
Syntax
ip device add <i/f> <type> <file> [mtu <size>] [<IP address>|dhcp]
ip device
Description
The
ip device add
command adds an interface to the configuration of the IP stack.
The last parameter of the command is normally the IP address of the interface. The
use of the string
dhcp
causes the IP address to be discovered by the DHCP client
software. Note that using the flag
dhcp
on an interface precludes running a DHCP
server on that interface!
The
ip device
command lists the current configuration of any devices attached to
the IP stack. A device configured to use DHCP will show
dhcp
in the
IP address
column, followed by the actual IP address discovered and bound by DHCP, if any.
For interfaces configured to use DHCP, saving configuration only marks the interface
as using DHCP. It does not save the actual IP address discovered by DHCP, which
must be renewed.
A useful method of automatically configuring suitable IP devices is to put a
device
add
statement into the file
//isfs/resolve
and downloading it upon booting the image.
Example
>
ip device add ethernet ether //edd dhcp
DHCP then discovers the IP address for the interface
>
ip device
#
type
dev file
IP address
device ethernet
ether
//edd mtu 1500dhcp