Page 1 of 1

Configuration of 2 IPs in Server

PostPosted: Sat Jul 04, 2009 3:02 am
by joylovebasu
How to configure 2 IPs.. One Static and another Local IP on the vicibox ?

PostPosted: Sun Jul 05, 2009 7:11 pm
by joylovebasu
Any suggestions ?

PostPosted: Mon Jul 06, 2009 12:45 am
by okli
/etc/network/interfaces


example:
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
auto eth0
iface eth0 inet static
   #pre-up /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off
        address XXX.XXX.XXX.XXX
        netmask XXX.XXX.XXX.XXX
        network XXX.XXX.XXX.XXX
        broadcast XXX.XXX.XXX.XXX
        gateway XXX.XXX.XXX.XXX
      
auto eth1
iface eth1 inet static
#       pre-up /usr/sbin/ethtool -s eth1 speed 100 duplex full autoneg off
       address 10.17.17.4
       netmask 255.255.255.0
       network 10.17.17.0
       broadcast 10.17.17.255
       up route add -net 10.17.17.0 netmask 255.255.255.0 dev eth1
       down route del -net 10.17.17.0 netmask 255.255.255.0 dev eth1


http://www.google.com/search?hl=en&q=co ... 9&ie=UTF-8