Ifconfig Ipv6 Default Gateway
Configuring a static IP address/mask and default gateway Note that /24 is shorthand for specifying a network mask of 255.255.255.0, then set the default gateway to be 172.30.10.1. Method I - Temporary settings (lasts till next restart) [root@frida root]# ifconfig eth0 172.30.10.101 netmask 255.255.255.0 broadcast 172.30.10.255 [root@frida root]# route add … Linux setup default gateway with route command - nixCraft Aug 11, 2015
How to Add a Physical Interface After Installation in Solaris 10 3/05 ONLY Before You Begin. Determine the IPv4 addresses that you want to use for the additional interfaces. The physical interface to be configured must be present on the system.
The the network command line tool ifconfig is not installed thus missing by default on CentOS 7 Linux. Users are instead encouraged to use ip command to do most of the network administration work. For example the following ip command can be used to show IP address on CentOS 7:
# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0 Add A Default Gateway. To add a new default route you will need to use the following: route add default gw 192.168.1.1. Once you have added the new route you will see it appear in the routing table:
$ sudo ifconfig eth0 192.168.72.165 netmask 255.255.255.0 up. 2. Set the Default Gateway. The default gateway is the address used to communicate with the outside network. To configure the default gateway, use the following command syntax: $ sudo route add default gw