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've just loaded a computer that was running Mandrake 9.2 to Slackware 9.1.
The PC had an integrated ethernet card and then also another PCI card. I put the PCI card in because I was having problems with the onboard when using Windows although it was only a troubleshooting shot... I don't know if the onboard is bad or not.
Anywho... I've tried every scenario with the stupid machine and I can't get the IP from the router (DHCP) no matter what. I've tried with the PCI installed and the onboard enabled, PCI out and onboard enabled, and also PCI installed with the onboard disabled. Linix comes up each time and shows it doing a DHCP broadcast but it never comes back with an IP.
8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 Fast Ethernet at 0xdob64f00, 00:e0:7d:a9:92:14, IRQ 10
eth0: Identified 8139 chip type 'RTL8139C'
eth0: Setting half-duplex based on autonegotiated partner ability 0000.
u an give your router the default gateway 192.168.1.1 then configure it in ur linux box
u could also try configuring addresses manually in ur LAN and turn off dhcp
for example
ifconfig eth0 192.168.0.1
up netmask 255.255.255.0 or netmask 255.255.255.0 up
u will probably have edit the file /etc/rc.d/rc.local to get this to boot up every time
and check the /etc/sysconfig/network-scripts + /etc/resolv.conf + /etc/sysconfig/network
First of all run `netconfig` and see which network card it uses to configure. Then from there you can add to your /etc/rc.d/rc.local or wherever this code to do the second one...
Code:
##Setting eth1 variables
# First we set the ip address and misc shitza:
IPADDR="192.168.0.1" # Internal IP
NETMASK="255.255.255.0" # Netmask
NETWORK="192.168.0.0" # Network Address
BROADCAST="192.168.0.255" # Broadcast Address
GATEWAY="" #Gateway
##Set up the NIC
echo "Configuring eth1 as ${IPADDR}..."
/sbin/ifconfig eth1 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
This is how I have it set up on my server with a local subnet behind it.
Solved. Just successfully compiled my first Kernel. After moving this PC up to 2.6.6 everything (so far...) works perfectly! I can't believe it. Gonna celebrate tonight!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.