LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   2 Network Card Configuration (for routing) (https://www.linuxquestions.org/questions/slackware-14/2-network-card-configuration-for-routing-512099/)

dc_eros 12-19-2006 08:26 PM

2 Network Card Configuration (for routing)
 
I have installed Slackware 11.0 with 2 LAN card. One for the internet connection from the server, and one for my internal network.

What i want to do is to connect my internal network to the internet
through my box, which is connected to our company internet server
which provides internet connection.

I know about routing, but the problem is that
i don't know what utils to use to configure this
I'm also a SuSE user, and i like their YAST
i used slackware's netconfig, but i think its not enough. i noticed
it only configures one LAN card.

Thank you reading my post. Waiting for your reply.

ryanoa 12-19-2006 09:02 PM

You can manually edit /etc/rc.d/rc.inet1.conf to configure any network card. After you make your changes you will have to restart the cards
Code:

/etc/rc.d/rc.inet1 restart
Regards,
Ryan

granth 12-19-2006 09:17 PM

First and foremost, you need to assign each nic a static name via a udev rule.

You must be root to do the following.

First, determine the mac addresses for you nic cards.

Code:

ifconfig|grep HWaddr
That will show you the current assigned nic names and their corresponding MAC address.

Next, edit the udev rule.
Code:

jed /etc/udev/rules.d/network-devices.rules
Remove the comments (#) in front of KERNEL==.

Save the file and reboot.

If you did that correctly, the nic's will always be assigned the same name (eth0,eth1,etc.)


All times are GMT -5. The time now is 07:44 AM.