config_network(1) - Linux man page
Name
config:network - Configures system network settings.
Synopsis
config:network [options]
Description
The config:network command enables you to configure network settings such as hostname, defaultrouter, search-domain, dns, and interface settings. You must use one of the options described below.
Options
The following options are supported for the config:network command:
hostname <string>
- Specifies the fully qualified hostname.
defaultrouter <x.x.x.x>
- Specifies the IP address of the default router.
search-domain <string>
- Specifies the search domain.
dns <a.a.a.a b.b.b.b c.c.c.c>
- Specifies the IP addresses of one or more DNS servers.
int
- Displays the Network Interfaces.
int <interface>
- Displays information pertaining to a Network Interface.
int <interface> down
- Bring down a Network Interface.
int <interface> up <onboot | not-onboot> <static | dhcp> <ip> <netmask> <gateway>
- Bring up a Network Interface with the specified settings: boot status, static IP versus DHCP, IP address, netmask, and gateway IP (or default).
int <interface> <onboot | not-onboot>
- Specify the boot status of a Network Interface. NIC must already be up.
int <interface> <static | dhcp>
- Specify static IP or DHCP for a Network Interface. NIC must already be up.
int <interface> ip <x.x.x.x>
- Specify the IP address of a network interface. NIC must already be up.
int <interface> netmask <x.x.x.x>
- Specify the netmask of a network interface. NIC must already be up.
int <interface> gateway <x.x.x.x | default>
- Specify the gateway IP address, or default to use the defaultrouter.
Examples
Example 1. Specifying the hostname
-
traffic_shell> config:network hostname host.example.com traffic_shell>
Example 2. Specifying multiple DNS servers
-
traffic_shell> config:network dns "x.x.x.x y.y.y.y z.z.z.z" traffic_shell>
Example 3. Listing the Network Interfaces
- traffic_shell> config:network int eth0 eth1 traffic_shell>
Example 4. Bringing up a Network Interface with IP address x.x.x.x and netmask y.y.y.y
-
traffic_shell> config:network int eth0 onboot static x.x.x.x y.y.y.y default traffic_shell>
See Also
show:network