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 (eth1)...
  2. How to find multiple ip address for one domain name (with c programming) Some domain’s serve under multiple ip addresses for example google.com...
  3. Sample Linux Driver (module) I am generally writing linux drivers for embedded systems for...
  4. Linux Broken Pipe Error Solution SIGPIPE signal is sent by kernel to programs whose remote...
  5. Linux Bluetooth Integration 1. Introduction What is Bluetooth? Bluetooth is an industrial specification...