ipconfig, rip, linklocal – Internet configuration and routing
unhandled troff command .in
unhandled troff command .ti
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.
remove 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
write the control string
use DHCP to determine any unspecified configuration parameters.
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.
the maximum IP packet size to use on this interface.
determine parameters but don’t configure the interface.
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
disable IPv6 duplicate discovery detection, which removes 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.
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
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 remove 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.
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 188.8.131.52 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 184.108.40.206 ether /net.alt/ether1\\ 220.127.116.11 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