LinuxQuestions.org
Visit Jeremy's Blog.
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 11-21-2013, 01:00 PM   #16
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by enyawix View Post
You can have two default gateways you get equal cost load balancing assuming the administrative distance is the same for each link. Cisco routers do this all the time. I am sure Linux can do it to.
Now why do I have to use 10.0.0.0 and not 10.146.123.0 which is the network address on the IP range for that NIC?

Sorry I am a bit of a noob when it comes to TCP/IP
 
Old 11-21-2013, 01:16 PM   #17
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
linuxr00lz2013 based on what you posted looks like you need to build service routes. Packets need to be routed
end to end. Traffic from. 169.254.95.0 and 169.254.0.0 have no return routes. So packets can get to 10.146.112.1
and 10.146.123.1 but can not get back, so ping fails.
 
Old 11-21-2013, 01:20 PM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by enyawix View Post
You can have two default gateways you get equal cost load balancing assuming the administrative distance is the same for each link. Cisco routers do this all the time. I am sure Linux can do it to.
You need to READ the thread before answering. You're talking about something he's not asking about, and you're just confusing him.
 
Old 11-21-2013, 01:21 PM   #19
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by linuxr00lz2013 View Post
Now why do I have to use 10.0.0.0 and not 10.146.123.0 which is the network address on the IP range for that NIC?

Sorry I am a bit of a noob when it comes to TCP/IP
I said to use 10.0.0.0/8 as I *presumed* that covered all the internal networks that would head off in that direction.

10.146.123.0 doesn't need any routing. you are already on it. you KNOW where that network is. It's everything else that is NOT internet that you need to provide routing information for.

Last edited by acid_kewpie; 11-21-2013 at 01:33 PM.
 
Old 11-21-2013, 01:30 PM   #20
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I said to use 10.0.0.0/8 as I *presumed* that covered all the internal networks that would head off in that direction.

10.146.123.0 doesn't need any routing. you are already on it. you KNOW where that network is. It's everything else that is NOT internet that you need to provide routing information for.

Looking back at your earlier posts... you're only trying to hit a machine that's on the same local network currently? Well that's nothing to do with routing at all, as above, you're already there. no gateway anythings required to reach that.


I was able to get this to work in a Red Hat box earlier... I posted in the forums and I got some good advice.. Here is the thread:

http://www.linuxquestions.org/questi...ic-4175482942/


Seeing that Ubuntu has its network config files set up differently.. I have no idea how to replicate the same process but on Ubuntu.
 
Old 11-21-2013, 01:34 PM   #21
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you follow the link I posted earlier, and when asked to confirm you've reloaded the network and to show your routing tables you actually do it.
 
Old 11-21-2013, 01:41 PM   #22
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
you follow the link I posted earlier, and when asked to confirm you've reloaded the network and to show your routing tables you actually do it.
thank you for your reply. I appreciate the quick replies

I did follow that link and I posted the output after I did the reload. It still didnt work
 
Old 11-21-2013, 01:52 PM   #23
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
Quote:
Originally Posted by linuxr00lz2013 View Post
I was able to get this to work in a Red Hat box earlier... I posted in the forums and I got some good advice.. Here is the thread:

http://www.linuxquestions.org/questi...ic-4175482942/


Seeing that Ubuntu has its network config files set up differently. I have no idea how to replicate the same process but on Ubuntu.
Reading that post you have return routes definded simply using routing list. reread post 14. Using dynamic routing would be simpler, but is far beyond the scope of this forum. If you intend to become a network engineer you need to know sub netting and dynamic routing like rip, ospf, and isis.

intro to dynamic routing
http://www.youtube.com/watch?v=DT-pmXMCOS8

intro to sub netting
http://www.youtube.com/watch?v=AJPZxXwOc-4
 
Old 11-21-2013, 01:56 PM   #24
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enyawix View Post
Reading that post you have return routes definded simply using routing list. reread post 14. Using dynamic routing would be simpler, but is far beyond the scope of this forum. If you intend to become a network engineer you need to know sub netting and dynamic routing like rip, ospf, and isis.

intro to dynamic routing
http://www.youtube.com/watch?v=DT-pmXMCOS8

intro to sub netting
http://www.youtube.com/watch?v=AJPZxXwOc-4
thank you for the links! ill definitely check them out!
 
Old 11-21-2013, 02:55 PM   #25
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
you follow the link I posted earlier, and when asked to confirm you've reloaded the network and to show your routing tables you actually do it.
Here is the modified /etc/network/interfaces file:

Code:
 cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
        address 10.146.112.34
        netmask 255.255.255.0
        gateway 10.146.112.1


auto eth1
allow-hotplug eth1
iface eth1 inet static
        address 10.146.123.8
        netmask 255.255.255.0
        post-up route add -net 10.146.123.0 netmask 255.255.255.0 gw 10.146.123.1

and the route -n output

Code:
 route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.146.112.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.146.123.0    10.146.123.1    255.255.255.0   UG    0      0        0 eth1
10.146.123.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.95.0    0.0.0.0         255.255.255.0   U     1      0        0 usb0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         10.146.112.1    0.0.0.0         UG    100    0        0 eth0

Unfortunately, i am still getting the same problem
 
Old 11-21-2013, 04:39 PM   #26
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
your route statement there makes NO sense. As I already said, You're already ON that network.

10.146.123.0 is NOT NOT NOT reachable via 10.146.123.1. Just read what that says... it's like driving to the garage to get your car... nonsense.

delete that entry if the only thing you want to get to via eth1 is other machines on the same subnet. there is no work at all to even do there. no routes or anything.
 
Old 11-22-2013, 12:08 PM   #27
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
your route statement there makes NO sense. As I already said, You're already ON that network.

10.146.123.0 is NOT NOT NOT reachable via 10.146.123.1. Just read what that says... it's like driving to the garage to get your car... nonsense.

delete that entry if the only thing you want to get to via eth1 is other machines on the same subnet. there is no work at all to even do there. no routes or anything.

Ok well I commented out the entry for the route for eth1 in /etc/network/interfaces and I reloaded the service. Here is the output of my route -n:

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.146.112.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.146.123.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
169.254.95.0    0.0.0.0         255.255.255.0   U     1      0        0 usb0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         10.146.112.1    0.0.0.0         UG    100    0        0 eth0

But its still not working for me.

Also, I checked with one of my network engineers and previously in RedHat and also in windows we set up the NIC to route through 10.146.123.1 and it routed fine and backups ran fine. I still dont know what I am doing incorrectly thats causing this to behave strangely.
 
Old 11-22-2013, 03:52 PM   #28
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
if that's still not working, then it's something else. iptables, physical connectivity or something.
 
Old 11-22-2013, 04:00 PM   #29
linuxr00lz2013
LQ Newbie
 
Registered: Sep 2013
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
if that's still not working, then it's something else. iptables, physical connectivity or something.
ya we figured a part of it out... it was on the wrong VLAN.

now im working on configuring to get the routing proper
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Two NICS one web server and Two Gateways walk into a bar... dr_rockstar66 Linux - Networking 2 02-23-2005 05:23 PM
plz plz solve my route mapping problem nedian123 Linux - Networking 1 07-12-2004 10:41 PM
2 NICs 2 networks 2 gateways birkinshawc Linux - Networking 1 05-29-2004 04:05 PM
Howto set up 2 different gateways for 2 different nics kemplej Slackware 1 05-18-2004 12:53 PM
SuSE 9.0 Two NICs, only first assigned DNS mwooten111 Linux - Distributions 1 04-21-2004 10:56 AM

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

All times are GMT -5. The time now is 04:37 PM.

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