3 ipconfig, rip, linklocal, ipv6on \- Internet configuration and routing
65 binds a device interface to a mounted IP stack (default
67 and configures the interface with a local address and optionally
68 a mask, a remote address, a file server and an authentication server address.
69 If no device is specified, the first
71 device on the mounted IP stack is used.
72 The addresses can be specified in the command line or obtained via DHCP.
73 If DHCP is requested, it will also obtain the addresses of DNS
74 servers, NTP servers, gateways, a Plan 9 file server,
75 and a Plan 9 authentication server.
76 If this is the first non-loopback
77 interface on the IP stack, the information will be written to
95 except that it allows jumbo packets (up to ~9KB).
98 interface passes all IP packets to and from a user program.
101 the device can be any byte stream device.
105 determines the action performed. The usual verbs are:
109 if the device is not bound to the IP stack, bind it.
110 Add the given local address, mask, and remote address to the interface.
111 An interface may have multiple addresses.
114 remove the address from the device interface.
117 unbind the device interface and all its addresses from the
121 The IPv6-specific verbs, which take different arguments, are:
123 .BI "add6 " "prefix pfx-len onlink auto validlt preflt"
124 sets the named IPv6 parameters; see
128 .BI "ra6 " "[ keyword value ] ..."
129 sets IPv6 router advertisement parameter
137 non-zero also forks a process to
138 receive and process router advertisements.
142 enables IP routing on the interface,
143 forks a process to send router advertisements,
146 process is running, forks one.
154 if adding an address (the default action),
155 add the IPv6 link-local address.
158 the baud rate to use on a serial line
163 write the control string
165 to the ethernet device control file before starting to configure it.
166 May be repeated to specify multiple control writes.
169 use DHCP to determine any unspecified configuration parameters.
178 use only generic DHCP options. Without this option,
180 adds to requests a Vendor Class option with value
182 and also requests vendor specific options 128 and 129 which we
183 interpret as the Plan 9 file server and auth server.
184 Replies to these options contain a list of IP addresses for possible
185 file servers and auth servers.
188 the hostname to add to DHCP requests. Some DHCP
189 servers, such as the one used by Comcast, will not respond
190 unless a correct hostname is in the request.
193 the maximum IP packet size to use on this interface.
196 determine parameters but don't configure the interface.
201 for the IP parameters. This only works if the
202 interface is an ethernet. It uses the ethernet address to find
206 addresses specified on the command line override those obtained via DHCP.
207 A command line address of 0 implies no override.
210 write configuration information to
212 even if other network interfaces are already configured
215 do not write configuration information to
217 even if this is the first network interface to be configured
222 exits after trying DHCP for 15 seconds with no answer.
225 instead to fork a background process that keeps trying forever.
228 disable IPv6 duplicate discovery detection,
229 which removes any existing ARP table entry for one of our IPv6 addresses
230 before adding new ones.
233 use the ndb database file
237 use the IP stack mounted at
243 don't fork a process to keep the DHCP lease alive.
248 to the list of paramters requested of the DHCP server. The
249 result will appear in
251 should this be the first interface. The known options are:
255 arptimeout, baddr, bflen, bootfile, clientid, cookie, discovermask,
256 discoverrouter, dns, dom, dumpfile, etherencap, extpath, finger,
257 homeagent, impress, ipaddr, ipforward, ipgw, ipmask, irc, lease, log,
258 lpr, maxdatagram, maxmsg, message, mtu, name, netbiosdds, netbiosns,
259 netbiosscope, netbiostype, ni, nisdomain, nisplus, nisplusdomain,
260 nntp, nonlocal, ntp, overload, params, pathplateau, pathtimeout,
261 policyfilter, pop3, rebindingtime, renewaltime, rl, rootpath, rs,
262 serverid, smtp, st, staticroutes, stdar, subnetslocal, supplymask,
263 swap, sys, tcpka, tcpkag, tcpttl, tftp, time, timeoff, trailerencap,
264 ttl, type, vendorclass, www, xdispmanager, xfont
274 are always requested.
278 If DHCP is requested, a process is forked
279 off to renew the lease before it
280 runs out. If the lease does run out, this
281 process will remove any configured addresses
285 runs the routing protocol RIP.
286 It listens for RIP packets on connected networks and
287 updates the kernel routing tables.
293 broadcasts routing information onto the networks.
296 gathers routing information but doesn't write to the
297 route table. This is useful with
302 use the IP stack mounted at
308 turn on (voluminous) debugging.
311 prints the IPv6 link-local address corresponding to the given
319 EUI-64-based IPv6 address corresponding to
327 uses the network database at
329 to configure the network mounted on
331 with a link-local address (derived from its MAC address)
332 and attempts to add a default IPv6 route to the local
333 IPv4 gateway's IPv6 address.
336 is supplied, it will be used as the gateway IPv4 address.
338 Configure Ethernet 0 as the primary IP interface.
339 Get all addresses via DHCP. Start up a connection server
340 and DNS resolver for this IP stack.
350 Add a second address to the stack.
353 % ip/ipconfig ether /net/ether0 add 12.1.1.2 255.255.255.0
356 At Bell Labs, our primary IP stack is always to the company's internal
357 firewall-protected network. The following creates an external
358 IP stack to directly access the outside Internet. Note that the
359 connection server uses a different set of
361 files. This prevents us from confusing inside and outside name/address
365 % bind -b '#l1' /net.alt
366 % bind -b '#I1' /net.alt
367 % ip/ipconfig -x /net.alt -g 204.178.31.1 ether /net.alt/ether1\\
368 204.178.31.6 255.255.255.0
369 % ndb/cs -x /net.alt -f /lib/ndb/external
370 % ndb/dns -sx /net.alt -f /lib/ndb/external
371 % aux/listen -d /rc/bin/service.alt /net.alt/tcp
374 Get all addresses via DHCP.
375 Configure the IPv6 link-local address automatically
376 and listen for router announcements.
380 ip/ipconfig ra6 recvra 1
383 .B /sys/log/v6routeradv
385 .B /sys/src/cmd/ip/ipconfig
387 .B /sys/src/cmd/ip/rip.c
389 .B /sys/src/cmd/ip/linklocal.c
402 for IPv6's modified EUI-64