IPCONFIG(8)IPCONFIG(8)
NAME
ipconfig, rip, linklocal – Internet configuration and routing
SYNOPSIS
unhandled troff command .in
unhandled troff command .ti
DESCRIPTION
The verb (default
if the device is not bound to the IP stack, bind it. Add the given local address, mask, and remote address to the interface. An interface may have multiple addresses.
delete the address from the device interface.
unbind the device interface and all its addresses from the IP stack.
The IPv6-specific verbs, which take different arguments, are:
sets the named IPv6 parameters; see
sets IPv6 router advertisement parameter
The options are:
if adding an address (the default action), add the IPv6 link-local address.
the baud rate to use on a serial line
when configuring
write the control string
use DHCP to determine any unspecified configuration parameters.
For the
turn on debugging.
the default gateway.
use only generic DHCP and RA options. Without this option,
the hostname to add to DHCP requests. Some DHCP servers, such as the one used by Comcast, will not respond unless a correct hostname is in the request.
when writing
the maximum IP packet size to use on this interface.
determine parameters but don’t configure the interface.
look in
addresses specified on the command line override those obtained via DHCP. A command line address of 0 implies no override.
write configuration information to
do not write configuration information to
by default,
add
enable source address translation on the interface and default route. (only useful for IPv4).
specify the DHCPv6 client identifier.
When omitted, the MAC address is used to generate a link-layer
based duid (DUID-LL).
Note that the
disable IPv6 duplicate discovery detection, which deletes any existing ARP table entry for one of our IPv6 addresses before adding new ones.
use the ndb database file
use the IP stack mounted at
don’t fork a process to keep the DHCP lease alive.
When adding an address, ARP proxy the new network on other interfaces.
adds
arptimeout, baddr, bflen, bootfile, clientid, cookie, discovermask, discoverrouter, dns, dom, dumpfile, etherencap, extpath, finger, homeagent, impress, ipaddr, ipforward, ipgw, ipmask, irc, lease, log, lpr, maxdatagram, maxmsg, message, mtu, name, netbiosdds, netbiosns, netbiosscope, netbiostype, ni, nisdomain, nisplus, nisplusdomain, nntp, nonlocal, ntp, overload, params, pathplateau, pathtimeout, policyfilter, pop3, rebindingtime, renewaltime, rl, rootpath, rs, serverid, smtp, st, staticroutes, stdar, subnetslocal, supplymask, swap, sys, tcpka, tcpkag, tcpttl, tftp, time, timeoff, trailerencap, ttl, type, vendorclass, www, xdispmanager, xfont
The options
If DHCP is requested, a process is forked off to renew the lease before it runs out. If the lease does run out, this process will delete any configured addresses from the interface.
broadcasts routing information onto the networks.
gathers routing information but doesn’t write to the
route table. This is useful with
use the IP stack mounted at
turn on (voluminous) debugging.
EXAMPLES
Configure Ethernet 0 as the primary IP interface. Get all addresses via DHCP. Start up a connection server and DNS resolver for this IP stack.
% bind -b '#l0' /net % bind -a '#I0' /net % ip/ipconfig % ndb/cs % ndb/dns -r
Add a second address to the stack.
% ip/ipconfig ether /net/ether0 add 12.1.1.2 255.255.255.0
At Bell Labs, our primary IP stack is always to the company’s internal
firewall-protected network. The following creates an external
IP stack to directly access the outside Internet. Note that the
connection server uses a different set of
% bind -b '#l1' /net.alt % bind -b '#I1' /net.alt % ip/ipconfig -x /net.alt -g 204.178.31.1 ether /net.alt/ether1\\ 204.178.31.6 255.255.255.0 % ndb/cs -x /net.alt -f /lib/ndb/external % ndb/dns -sx /net.alt -f /lib/ndb/external % aux/listen -d /rc/bin/service.alt /net.alt/tcp
Configure the IPv6 link-local address automatically and listen for router announcements.
ip/ipconfig -6 ip/ipconfig ra6 recvra 1
Configure
ip/ipconfig loopback /dev/null 127.1 /128 ip/ipconfig loopback /dev/null ::1 /128
Configure
ip/ipconfig null /dev/mordor 8.8.8.8 /128
FILES
SOURCE
SEE ALSO