Assign new ip =   ifconfig eth0 192.168.1.10

Assign IP/Subnet =  ifconfig eth0 192.168.1.10 netmask 255.255.255.0

Assign Default Gateway=  route add default gw 192.168.1.1

Assign multiple IP’s =  ifconfig eth0:0 192.168.1.10 netmask 255.255.255.0

Assign second IP =  ifconfig eth0:1 10.1.10.20 netmask 255.255.0.0

Buy me a beer

Related posts:

  1. 1 PC 2 Ethernet port and 1 PC one ethernet port and first PC as a gateway Needed program: Iptables PC 1 system gateway = 192.168.2.1...
  2. How to find multiple ip address for one domain name (with c programming) Some domain’s serve under multiple ip addresses for example...
  3. Linux Broken Pipe Error Solution SIGPIPE signal is sent by kernel to programs whose...
  4. How to change ‘ls’ command color @ linux terminal First change ls commands color attribute to auto alias...
  5. MBR backup with dd command @ LINUX MBR is the master boot record of your disks....