LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2014, 03:32 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
Routing entry question for dual ethernet ports


ubuntu 12.04, using NetworkManager package to manage 2 eth ports.

1. At 1st we have only 1 port,
eth0, static ip 10.38.150.214,

root@utilite-ubuntu-desktop:/opt/ultra# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.50.183.254 0.0.0.0 UG 0 0 0 eth0
10.38.144.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0
10.50.183.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0


i ping the windows 7 pc (host 10.50.176.234) from linux, good.
ping linux eth0 from windows 7, good.

2. now i plugin cable for eth1, this is using dhcp,
ip is 10.50.176.212, routing table is updated automatically,

root@utilite-ubuntu-desktop:/opt/ultra# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.50.183.254 0.0.0.0 UG 0 0 0 eth1
10.38.144.0 0.0.0.0 255.255.248.0 U 1 0 0 eth0
10.50.176.0 0.0.0.0 255.255.248.0 U 1 0 0 eth1
10.50.183.254 0.0.0.0 255.255.255.255 UH 0 0 0 eth0

From windows, i can ping eth1 (10.50.176.212), but not eth0 anymore,

Any suggestions pls ?
Thanks very much !

Last edited by 5883; 03-03-2014 at 03:38 PM.
 
Old 03-04-2014, 06:00 AM   #2
amr.es
LQ Newbie
 
Registered: Feb 2014
Posts: 12

Rep: Reputation: Disabled
did you enabled forwarding by setting net.ipv4.ip_forward = 1

run this command sysctl -a | grep net.ipv4.ip_forward and see its valuse if it is zero change it to 1
 
Old 03-04-2014, 07:45 AM   #3
nikmit
Member
 
Registered: May 2011
Location: Nottingham, UK
Distribution: Debian
Posts: 178

Rep: Reputation: 34
What are you trying to do?
Can you make a scetch of the network layout?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual ethernet routing rcketscientist Linux - Networking 6 05-28-2013 09:38 PM
Daisy chain two servers -- one with dual ethernet ports angelogladding Linux - Networking 2 12-24-2007 02:07 PM
Routing table entry Ifurita1981 Linux - Networking 6 03-25-2007 02:53 PM
open ports in an inittab entry wede AIX 3 09-02-2004 03:27 PM
How to know when a routing entry is used? thanh Programming 7 06-12-2004 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration