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 think that is a command where i can see whether there is any packet flow through my Linux box bridge, is it??
what commnad is that???
is it neccessary?
Your laptop's gateway will be the PCs ip of the interface connected to the laptop..... that is the only IP address available to your laptop to get to the internet.
I'm not sure (because you said AND instead of BUT in your sentence) if you can ping the PC's gateway (that would be the router) from your laptop. Can you?
The basic setup of a bridge is done like:
Zero IP the interfaces. The bridge needs the network devices to be operational, but without TCP/IP running on them. # ifconfig eth0 0.0.0.0
# ifconfig eth1 0.0.0.0
Create the bridge interface.
# brctl addbr mybridge
Add interfaces to the bridge.
# brctl addif mybridge eth0
# brctl addif mybridge eth1
Put up the bridge.
# ifconfig mybridge up
so the Pc's eth1 ip address is set to 0.0.0.0
i dont think i can set the gateway ipaddress for my laptop to this IP.
i want to do the bandwidth allocation base on the application layer...
so hope u know why bridging is important for me in making this project success..
No no... that's not my question. I'm not saying that you shoudn't try bridging.
I'm trying to get you to "debug" the problem.
Let's try to clarify the situation.
You have a router. You have a PC and a laptop. Right?
I'll go on using those names:
PC side
The GW has to be the router's address.
It has to have forward enabled
It has to have masquerading activated in POSTROUTING
It MUST NOT filter the traffic comming in from the laptop.
you should be able to ping your router.
you should be able to ping the laptop.
LAPTOP side
The GW is the PCs address on the interface connected to the laptop.
you should be able to ping the pc (in the first place).
you should be able to ping the router (that depends on the PC configuration).
i change eth1 to subnet 1 , ie. 192.168.1.17
then the laptop gateway set to 192.168.1.17
but still cant ping....unreachable
what is the gateway IP for eth 1? same as eth 0 gateway, is it?
what is the IP address for my laptop (using zero subnet or one subnet??) ? i tried both..but also cant...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.