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.
I have very limited experience networking with multiple interfaces, so please bear with me. The issue is that Eth0 seems to have been disabled, I cannot connect/ssh to it directly, but I can connect to it's designated ip through eth1. This is what ifcfg-ethX looks like:
During boot udev dynamically configures your hardware. You can permanently change what udev does in one of the files in the /etc/udev/rules.d directory. Which file contains the network configuration rules varies from distribution to distribution. Here is an explanation of how it is done in Slackware:
I use Debian. My network configuration is set in /etc/udev/rules.d/z25_persistent-net.rules The contents of my file are:
Code:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# MAC addresses must be written in lowercase.
# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:1b:2f:2f:13:aa", NAME="eth0"
# PCI device 0x1039:0x0900 (sis900)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:d0:09:d7:5a:d4", NAME="eth1"
I suggest that you look in your /etc/udev/rules.d/ directory for a file that describes your network configuration and change that file to suit your needs. If you can't find the file you might be able to create a file using mine as a pattern. If those ideas don't work then I suggest that you search LinuxQuestions for a thread that describes how your distribution sets up the file.
# PCMCIA devices:
#
# modprobe $modalias loads all possibly appropriate modules
ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
RUN+="/sbin/modprobe $modalias"
# Very few CIS firmware entries (which we use for matching)
# are so broken that we need to read out random bytes of it
# instead of the manufactor, card or product ID. Then the
# matching is done in userspace.
ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
RUN+="/sbin/pcmcia-check-broken-cis"
# However, the "weak" matching by func_id is only allowed _after_ modprobe
# returns, so that "strong" matches have a higher priority.
ACTION=="add", SUBSYSTEM=="pcmcia", ENV{MODALIAS}=="?*", \
RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
# PCMCIA sockets:
#
# modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
ACTION=="add", SUBSYSTEM=="pcmcia_socket", \
RUN+="/sbin/modprobe pcmcia"
# if this is a PCMCIA socket which needs a resource database,
# pcmcia-socket-startup sets it up
ACTION=="add", SUBSYSTEM=="pcmcia_socket", \
RUN+="/sbin/pcmcia-socket-startup"
I'm not sure in which of these files I should add the Eth0, Eth1 rules.
I'm not sure in which of these files I should add the Eth0, Eth1 rules.
I would try 60-net.rules.
--------------------
Steve Stites
P.S. I have CentOS 5.0 installed also and i have never had any network problems with it. My 60-net.rules file is the same as yours. My network configuration is different in that I only have eth0 installed. So maybe if you explicitly configure eth0 and eth1 in 60-net.rules maybe CentOS won't get them confused.
When I tried to configure the transparent proxy, I did some redirection by appending rules to my iptables nat table. I tried to flush these rules by #iptables -F, and then followed your instructions but still Eth0 doesn't respond. I guess I'm going to do a clean install of CentOS and go from there. Thanks for all your help.
UPDATE: Alright, I got it working. The issue was that both interfaces were working under the same netmask. The following post explains it in detail. Now If I could figure out how to get eth0 to use DHCP to connect to the cable modem instead of using eth1 and acquiring an ip from my access point's dhcp!!!!! Any takers?
When I tried to configure the transparent proxy, I did some redirection by appending rules to my iptables nat table. I tried to flush these rules by #iptables -F, and then followed your instructions but still Eth0 doesn't respond. I guess I'm going to do a clean install of CentOS and go from there. Thanks for all your help.
UPDATE: Alright, I got it working. The issue was that both interfaces were working under the same netmask. The following post explains it in detail. Now If I could figure out how to get eth0 to use DHCP to connect to the cable modem instead of using eth1 and acquiring an ip from my access point's dhcp!!!!! Any takers?
Sure, just use your dhcp-client command of choice (i.e. dhclient, dhcpcd, etc.) and add your interface name behind it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.