Adding second IP addres eth0:0

Discussion in 'ISPConfig 3 Priority Support' started by tomek, Sep 13, 2013.

  1. tomek

    tomek New Member

    Hello

    I am trying to add a virtual IP address to be used for a website. I followed the instructions in ISPCONFIG 3 guide by creating a file in /etc/sysconfig/network-scripts/ifcfg-eth0:0 this is what I have in the file

    DEVICE=eth0:0
    NM_CONTROLLED=yes
    TYPE=Ethernet
    BOOTPROTO=static
    IPADDR=192.168.1.135
    PREFIX=24
    GATEWAY=192.168.1.1
    DEFROUTE=no
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0:0"
    HWADDR=54:04:A6:A6:90:27
    DNS2=75.75.76.76
    DNS1=75.75.75.75
    USERCTL=no
    NETMASK=255.255.255.0

    my ifcfg-eth0 is

    DEVICE=eth0
    NM_CONTROLLED=yes
    ONBOOT=yes
    HWADDR=54:04:A6:A6:90:27
    TYPE=Ethernet
    BOOTPROTO=none
    IPADDR=192.168.1.134
    PREFIX=24
    GATEWAY=192.168.1.1
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0"
    DNS2=75.75.76.76
    DNS1=75.75.75.75
    USERCTL=no

    when I restart the network, or reboot the system I still don't have interface eth0:0 up

    this is the output of ifconfig

    eth0 Link encap:Ethernet HWaddr 54:04:A6:A6:90:27
    inet addr:192.168.1.134 Bcast:192.168.1.255 Mask:255.255.255.0
    inet6 addr: fe80::5604:a6ff:fea6:9026/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:511476 errors:0 dropped:0 overruns:0 frame:0
    TX packets:618897 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:63977793 (61.0 MiB) TX bytes:563825845 (537.7 MiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:98795 errors:0 dropped:0 overruns:0 frame:0
    TX packets:98795 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:18901814 (18.0 MiB) TX bytes:18901814 (18.0 MiB)

    Am I missing a step or something? How can I get this to work? Can anybody help? Thanks!
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which Linux distribution do you use?
     
  3. tomek

    tomek New Member

    CentOS 6.4 64bit
     
  4. tomek

    tomek New Member

    Can anybody help me to get it to work?
     

Share This Page