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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux