Display routing table




Display the routing table


Acquire an IP address via DHCP and display it

  dhcp && route


Display the routing table, including the IP addresses assigned to each network interface. For example, to acquire an IP address via DHCP and then display the resulting routing table:

  iPXE> dhcp && route
  DHCP (net0 52:54:00:12:34:56).. ok
  net0: gw

In this example you can see that the network interface net0 has obtained the IP address, with a subnet mask of and a gateway of

If a network interface is not open, then its route will be marked as (inaccessible). For example:

  iPXE> route
  net0: gw
  net1: gw (inaccessible)

In this example, the network interface net1 has been closed (e.g. using ifclose) and so is marked as (inaccessible).

See also


You cannot use the route command to modify the routing table. If you wish to modify the routing table manually, you must use the set command to configure the appropriate settings. For example, to open a network interface and configure it with a temporary static IP address:

  ifopen net0
  set net0/ip
  set net0/netmask
  set net0/gateway
cmd/route.txt · Last modified: 2011/03/23 19:23 by mcb30
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL http://ipxe.org
References to "iPXE" may not be altered or removed.