Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
perhaps, but i don't think so because look at the content of this file:
Where sould ifconfig know the correct line for interface eth0?? What is if i will have more than only 2 interfaces??
Any idea?
# eth0
IPADDR1="192.100.1.7" # REPLACE with YOUR IP address!
NETMASK1="255.255.255.255" # REPLACE with YOUR netmask!
# eth1
IPADDR2="192.100.1.8" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
# eth0
IPADDR1="192.100.1.7" # REPLACE with YOUR IP address!
NETMASK1="255.255.255.255" # REPLACE with YOUR netmask!
# eth1
IPADDR2="192.100.1.8" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
An 'ifconfig eth1 up' would give 'eth1' the ip adress of 'IPADDR2'!
@ehdwuld: if you would be right, this command should give 'eth1' the ip adress of 'IPADDR1' and not of 'IPADDR2'!
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634
Rep:
Quote:
( post #3)
perhaps, but i don't think so because look at the content of this file:
Where sould ifconfig know the correct line for interface eth0?? What is if i will have more than only 2 interfaces??
Any idea?
# eth0
IPADDR1="192.100.1.7" # REPLACE with YOUR IP address!
NETMASK1="255.255.255.255" # REPLACE with YOUR netmask!
# eth1
IPADDR2="192.100.1.8" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
ok
please I donot under stand your strange customs
your question was " where is this stored "
you asked for an expert opinion
you got one
you said " I don't think so "
you you are now the expert?
hmmmm
any ways
if you had " more " interfaces on your box
it would read
# eth0
IPADDR1="192.100.1.7" # REPLACE with YOUR IP address!
NETMASK1="255.255.255.255" # REPLACE with YOUR netmask!
# eth1
IPADDR2="192.100.1.8" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
# eth2
IPADDR3="192.100.1.9" # REPLACE with YOUR IP address!
NETMASK1="255.255.255.255" # REPLACE with YOUR netmask!
# eth3
IPADDR4="192.100.1.10" # REPLACE with YOUR IP address!
NETMASK2="255.255.255.255" # REPLACE with YOUR netmask!
please explain the part you are not understanding???
numbering of the interfaces starts at 0, 1, 2, etc......
numbering of the addresses follow conventional schemes starting at 1, 2, 3, etc........
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
The order of the network cards is assigned by the kernel in the order they were discovered. Look at the output from dmesg. As long as you don't move the cards around in the expansion slots, the order will always be the same.
ok, maybe i don't fully understand this drama, as i don't have to take my interfaces up and down regularly, but i see a quick solution:
write a script for restoring the interfaces so that the interfaces are labelled consistently, i.e. always put "/sbin/ifconfig eth0 <IP of eth0> broadcast <blah> netmask <blah>" BEFORE you pull up eth1.
that should work, and it might even leave the interfaces that are already up alone (i.e. not interrupt transfers through them). so instead of using "ifconfig eth1 up", link the script into your $PATH so you can issue "putemup" from the CL to put all interfaces back online.
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634
Rep:
Quote:
192.100.1.7
is the problem that it address is not
192.100.1.1
?????????
why?
if your network's
internal dhcp server sees itself first
it gets 192.100.1.1
then it see your router
it gets 192.100.1.2
then it discovers your buddies PC
it gets 192.100.1.3
and on and on
until it reaches to the ports on your box
which it labels 192.100.1.7, 192.100.1.8 , etc
its all part of the discovery protocols
read up on DHCP
maybe there you will find the answer
maybe the network block starts at something other than
192.100.1.0
in which case the range of available addresses would be different
Edit
could be the order in which they are plugged into the switch
maybe your network printer is
192.100.1.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.