network Command

The network command has options that let you activate, deactivate, or restart all network interface(s), or ping a specific system on the network.

Type the following command from your command line.

network  [ start | stop | restart | ping ip-address ]
network Syntax Parameters
Parameter Description
start Activates network interface(s).
stop Deactivates network interface(s).
restart Deactivates and then activates network interface(s).
ping ip-address Pings the specified IP address.

The network ping command determines network connectivity. When using ping for fault isolation, you initially run it on the local host, to verify that the local network interface is up and running. Then, ping hosts and gateways further and further away.

The ping command uses the ICMP protocols mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. ECHO_REQUEST datagrams (ping) have an IP and ICMP header, followed by a strict time value and then an arbitrary number of pad bytes used to fill out the packet.

Examples

To restart all network interfaces:
> network restart
Removing default gateway...
[ OK ]
Bringing down the eth0 interface...
[ OK ]
Bringing down the eth1 interface...
[ OK ]
Bringing up the eth0 interface...
[ OK ]
Bringing up the eth1 interface...
                     [ OK ]
                     Setting up default gateway...
                     [ OK ]
To determine network connectivity with the system that has IP address 10.1.1.222:
> network ping 10.1.1.222
PING 10.1.1.222 (10.1.1.222): 56 octets data
64 octets from 10.1.1.222: icmp_seq=0 ttl=64 time=2.1 ms
64 octets from 10.1.1.222: icmp_seq=1 ttl=64 time=1.0 ms
64 octets from 10.1.1.222: icmp_seq=2 ttl=64 time=0.8 ms
64 octets from 10.1.1.222: icmp_seq=3 ttl=64 time=1.2 ms
64 octets from 10.1.1.222: icmp_seq=4 ttl=64 time=1.3 ms

--- 10.1.1.222 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.8/1.2/2.1 ms