Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Correct Way to Configure eth0 using ifconfig for range of ip

    Given the following values of a range of IPs, what's the proper way to
    bind the first few to eth0 using ifconfig? What value do I use for

    The co-located server IP information is as follows:
    Base IP:
    IP Range: -
    Subnet Mask:

    What would be the proper way to write the following to bind the first few
    ip address to eth0? Do I have the right value for broadcast?

    ifconfig eth0:0 broadcast netmask
    route add -host dev eth0:0
    ifconfig eth0:1 broadcast netmask
    route add -host dev eth0:1
    ifconfig eth0:2 broadcast netmask
    route add -host dev eth0:2

  2. #2

    Looks very close to the examples. Just one thing: there are three extra commands in the howto.

    /sbin/ifconfig lo
    /sbin/ifconfig eth0 up
    /sbin/ifconfig eth0
    /sbin/ifconfig eth0:0
    /sbin/ifconfig eth0:1


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts