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 haveing a problem with second nic in my Debian box.
I did install debian with one nic, evry thing is fine I can ping all the network.
When I did add the second nic (3com3c905B) problem started,
I did add to:
/interfaces:
eth1 auto
eth1 inet static
address 192.168.34.122
netmask 255.255.255.0
gateway:192.168.34.1
and so aan,
but when I attech my network cable from eth0to eth1 I can not ping noware except the eth0, when I ping some publik IP I get the message the the host is unrechebale.
when I look at networking option (network-admin)
I see the eth0 and eth1 are both actevited.
Any Idea what is going on here?
I am newbie in linux world.
Your debian is assuming that you are trying to make a proxy server with your machine, as such you can not connect untill you configure your squid.conf and activate it,
From your post i assume you are not trying to make a proxy server as such here are some options:
1, Remove the second NIC card and continue working with only one card, if you need to change your IP you can do so at your network manager.
2, If you dont want to remove the second NIC card you can go to the network manager and disable the eth1 first, then disable the eth0 second and lastly enable eth1 then you can connect through the second NIC card, but dont do the network restart, becouse if you did that both of the cards are going to be enabled.
With the second option you have to do this any time you start your machine. Or from the network manager you can disable both of the card from starting automatically at startup (or type at the terminal "chkconfig network off" it will disable automatic network startup).
I will advise you if you dont really have to you should take the first option i.e. removing the second network card.
Let me tell u that I do't want to use the debain as a proxy server, rather I would like to use this box as a router in my network. Any Idea how should I do this?
This is the etho configuration:
eth0 auto
eth0 inet static
address 192.168.34.122
netmask 255.255.255.0
gateway:192.168.34.1
and so aan,
I guess this is the problem that prevents me from using debian and its descendents.
It doesn't respect your setup, even when you use different nic chipsets and configure /etc/modprobe.conf or /etc/modprobe.d/aliases, to specify which nic you want for each ethernet interface.
Instead of the other distribution families, as Red Hat and Slackware, where you configure ethernet when entering run level 3, controlled by the init scripts, debian configures the nics at level 1, using hotplug, when it is recognizing installed hardware. So, the eth0 will be the first recognized nic, eth1 will be the second, etc.
I made an script to be used when it enters multi-user mode but it doesn't prevent the timeout when, for the first time the nic is wrongly configured. If you want to try it, I will post the script.
By the way, reading the previous posts, you reported same ip addresses for eth0 and eth1. Is this correct?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.