Re: assigning multiple ip addresses to NIC on bootupm, how?

From: Ferindo Middleton Jr (fmiddleton_at_verizon.net)
Date: 07/22/05

  • Next message: jdow: "Re: Tutorial"
    Date: Thu, 21 Jul 2005 19:19:40 -0400
    To: lsomike@futzin.com
    
    

    You were absolutely right Mike. I just had to change the "DEVICE=eth0:1"
    to just "DEVICE=eth0".... and now it works... The Gnome 'Network' GUI
    must have put that there for some stupid reason.... I'm not going to use
    it anymore.... but it work great now. When the machine boots up it
    actually processes the ifcfg-eth0-range0 file and by the time the httpd
    service starts during bootup the necessary ip addresses are available
    for the apache server to bind to. This is great...

    The lesson I 've learned here is that I need to stop thinking that GUI
    tools provided in Redhat/Fedora to configure these configuration files
    is the best route, and get used to just editing my configuration files
    manually to ensure the configurations are following the proper format.

    Ferindo

    Mike Klinke wrote:

    >On Wednesday 20 July 2005 20:11, Ferindo Middleton Jr wrote:
    >
    >
    >
    >># Linksys|Network Everywhere Fast Ethernet 10/100 model NC100
    >>DEVICE=eth0:1
    >>
    >>
    >
    >This does not look right. Try DEVICE='eth0'
    >
    >
    >
    >>Additionally, when I run the "Network" tool in Gnome, this
    >>program doesn't like this new file I made at all.
    >>
    >>
    >
    >Can't help you too much here. I avoid GUI configuration tools like
    >the plague ( Bad juju ).
    >
    >
    >
    >>Mike, is there some other configurations that need to be set
    >>besides the ifcfg-eth0-range0 file that need to be set in order
    >>for this to work. I already have a ifcfg-eth0 file with this
    >>inside:
    >>
    >>
    >
    >
    >If not due to the above "DEVICE" setting then I don't know why your
    >attempt failed. Here is a sequence of my FC3 box that I just
    >stepped through for the first time on this box and, as you can see,
    >it worked as expected:
    >
    >21:35:14 # pwd
    >/etc/sysconfig/network-scripts
    >
    >21:35:22 # ll ifcfg-eth0*
    >-rw-r--r-- 1 root root 205 Jul 20 21:11 ifcfg-eth0
    >
    >21:35:24 # ifconfig
    >eth0 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.2 Bcast:192.168.1.255 ....
    > inet6 addr: fe80::a00:46ff:fe16:aed5/64 Scope:Link
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    > RX packets:902 errors:0 dropped:0 overruns:0 frame:0
    > TX packets:741 errors:0 dropped:0 overruns:0 carrier:0
    > collisions:0 txqueuelen:1000
    > RX bytes:441759 (431.4 KiB) TX bytes:53231 (51.9 KiB)
    >
    >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:35 errors:0 dropped:0 overruns:0 frame:0
    > TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
    > collisions:0 txqueuelen:0
    > RX bytes:3408 (3.3 KiB) TX bytes:3408 (3.3 KiB)
    >
    >21:35:26 # cp ~/ifcfg-eth0-range0 .
    >
    >21:35:54 # cat ifcfg-eth0
    >DEVICE='eth0'
    >ONBOOT='yes'
    >BOOTPROTO='none'
    >NOZEROCONF='yes'
    >IPADDR='192.168.1.2'
    >NETMASK='255.255.255.0'
    >GATEWAY='192.168.1.1'
    >TYPE='Ethernet'
    >USERCTL='no'
    >NETWORK='192.168.1.0'
    >BROADCAST='192.168.1.255'
    >
    >21:36:09 # cat ifcfg-eth0-range0
    >IPADDR_START=192.168.1.30
    >IPADDR_END=192.168.1.40
    >CLONENUM_START=0
    >NO_ALIASROUTING=yes
    >
    >21:36:15 # ifdown
    >21:37:10 # ifup
    >
    >21:37:50 # ifconfig
    >eth0 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.2 Bcast:192.168.1.255 .....
    > inet6 addr: fe80::a00:46ff:fe16:aed5/64 Scope:Link
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    > RX packets:930 errors:0 dropped:0 overruns:0 frame:0
    > TX packets:758 errors:0 dropped:0 overruns:0 carrier:0
    > collisions:0 txqueuelen:1000
    > RX bytes:444527 (434.1 KiB) TX bytes:54345 (53.0 KiB)
    >
    >eth0:0 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.30 Bcast:192.168.1.255 .....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:1 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.31 Bcast:192.168.1.255 .....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:2 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.32 Bcast:192.168.1.255 .....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:3 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.33 Bcast:192.168.1.255 .....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:4 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.34 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:5 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.35 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:6 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.36 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:7 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.37 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:8 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.38 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:9 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.39 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >eth0:10 Link encap:Ethernet HWaddr 08:00:46:16:AE:D5
    > inet addr:192.168.1.40 Bcast:192.168.1.255 ....
    > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    >
    >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:35 errors:0 dropped:0 overruns:0 frame:0
    > TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
    > collisions:0 txqueuelen:0
    > RX bytes:3408 (3.3 KiB) TX bytes:3408 (3.3 KiB)
    >
    >
    >
    >

    -- 
    Ferindo Middleton
    Chief Architect
    Sleekcollar.com
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: jdow: "Re: Tutorial"

    Relevant Pages

    • Re: zinc performance
      ... >>> Is zinc stable for real time system like vxWorks? ... So I am mostly using code to design my GUI rather ... > I have had the same problem of designer crashing on windows 2000. ... These are different approaches to device configuration. ...
      (comp.os.vxworks)
    • Re: Great SWT Program
      ... to produce mysterious impossible-to-clean-up messes that the GUI ... configuration tools typically provided now. ... experience with things without proper configuration tools is that you ... I haven't found any way to tell Eclipse about that other than to ...
      (comp.lang.java.programmer)
    • Re: Great SWT Program
      ... configuration tools typically provided now. ... GUI to configure something. ... The bad experiences that come to mind ... I haven't found any way to tell Eclipse about that other than to ...
      (comp.lang.java.programmer)
    • Re: Great SWT Program
      ... As in "change the program's options by modifying the configuration ... to produce mysterious impossible-to-clean-up messes that the GUI ... Windoze software that required me to hand-hack the registry to do ... It's solidly in the "old-style Unix programs" camp, ...
      (comp.lang.java.programmer)
    • Re: error "respawning too fast" on Toshiba Protege 7200
      ... > 1) How do you stop linux from booting into the GUI and go into Command Line mode? ... > 2) How do I searchout this error and fix it? ... Next we need to try to correct the X configuration. ... Next we probably want to investigate what video card you have and you ...
      (Fedora)