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 all!
i m trying to set up a LAN for my LAB using redhat 9.0
all pc have there own ip
name=lab1
one pc has the ip=192.168.1.1
and netmask = 255.255.255.0
OS redhat 9.0
and the other pc is having
name = lab2
ip=192.168.1.2
netmask=255.255.255.0
OS fedora 2.0
but i m not able to ping the machine from lab1 to lab2 or viceversa
what addition setting are required.....
i m new to linux world....so pl explain in detail
thanks for all these replies.....i had tried all these...but it is still the same
my one PC lab1 has to NICs eth0 & eth1
the eth0 is connected to my extenal LAN
name=lab1
IP=172.28.39.46
netmask=255.255.0.0
gateway=172.28.1.254
i m making my LAN thru eth1
name=lab1
IP=192.168.1.1
netmask=255.255.255.0
gateway=
with ifconfig command it is showing both NICs
i m able to connect to my extenal LAN thru eth0
but with eth1 i m not able to connect to connect to my own LAN...
both the lights on eth1 card are not blinking......(actually i was thinking to make lab1 PC as router later if my intenal LAN is working properly
i m trying to ping my own LAN with ip numbers......
but it is giving the message "destination host unreachable"
same message from lab2 PC........
pl help me out of this......
tia
i m using hub in between and the cable is not cross-over these are straight-through
thru 'ifconfig' command
my lab1 PC (it has 2 NICs) gives Rx=0 and some values for Tx on eth1 (my LAN side) link
and values for both on eth0 (for external LAN) link
and my lab2 PC gives some value for both Rx & Tx on eth0 link
i heard that it should be some value other then 0 for a proper connection....
does i have to make some entries in to the lab1 PC so that it can recognize the traffic in my LAB LAN side...because it is able to communicate on external LAN side
but after entering the entries in the iptables as given above
my LAb1 PC which is acting as router is not able to ping to the outside LAN
nor my any of the PCs ( which are on my ownLAB LAN side) can ping the outside LAN .
but if i comment these entries in the iptables and restart the iptables n network, then i can ping the outside LAN from my LAB1 PC(router PC) but not from the other PCs in my LAB LAN......
with the first entry as
-t nat -A postrouting -d ! 192.168.1.0 -j MASQUERADE
iptables does not restart and give the following error
iptables-restore v1.2.7a: line 20 seems to have a -t table option
try iptables-restore -h or iptables-restore --help for more information
but if i comment this entry, iptable can be restarted, with other entris ...but does not ping outside LAN
what other entries/modifications i have to make in the iptables.....
i tried that too but still the message is same.....i m still not able to ping my external LAN from my LAB LAN....only the PC which has two NICs can ping the outside LAN not other PCs...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.