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.
Hi, i have a problem with fedora core 3 and eth.
My pc have two ethernet cards, eth0 is working perfect and used for internet connexion. The other is used for intern network. The problem is that i cant initialice eth1 automatly on start up. Need to enter the orders in console to enable it. How can i do it?
You can put these commands in /etc/rc.local. Mind that you must include the full path to a command, i.e: /sbin/ifconfig eth1 xx.xx.xx.xx and so on.
Or you can create a script with these commands put it in /etc/init.d/ and run "chkconfig scriptname on" to activate it on the various runlevels.
Yep, i tryed this but didn't work. I checked the files /etc/sysconfig/networking/profiles/default/ifcfg-eth1 and /etc/sysconfig/network-scripts/ifcfg-eth1 including the key but didnt work.
Only if i put the commands in /etc/rc.local works.
MMM, still not working... When I write route it shows me that the link is up, but when i try to make a ping it dont work. When i call service network restart the eth1 shows me a failure.
The comand i wrote in the file /etc/rc.local was: /sbin/ifconfig eth1 192.168.128.26 netmask 255.255.255.0
Doesnt work yet
This is a ping
#ping 192.168.128.1
From 192.168.128.26 icmp_seq=1 Destination Host Unreachable
From 192.168.128.26 icmp_seq=2 Destination Host Unreachable
From 192.168.128.26 icmp_seq=3 Destination Host Unreachable
Well, this is the file /etc/rc.local of the server
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Afegit per Tecnics DEIC #
modprobe ipt_MASQUERADE
modprobe iptable_filter
there are 26 machines this is the server 1, but i'm trying comunicating the pc 1 with the 26.
There is also a VLAN, this is a reason for the eth2 with another address
If you cannot contact the person you put that command in rc.local, I suggest you to configure your nics the way you want and then use a scipt to configure iptables according to your settings. Try quicktables which is an interactive script that lets you easily configure iptables rules.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.