LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2014, 08:20 PM   #1
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Rep: Reputation: Disabled
SLES network config question


Hi experts

I am confused by something: this VM 4v7: It has the following:
Code:
4v7:~ # ifconfig
eth3      Link encap:Ethernet  HWaddr 00:50:56:11:36:46
          inet addr:10.131.226.110  Bcast:10.131.226.255  Mask:255.255.255.0

eth10     Link encap:Ethernet  HWaddr 00:50:56:00:36:46
          inet addr:10.131.224.110  Bcast:10.131.224.255  Mask:255.255.255.0
 
 

4v7:~ # route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.131.224.0    10.131.224.1    255.255.255.0   UG    0      0        0 eth10
10.131.226.0    *               255.255.255.0   U     0      0        0 eth3
10.130.102.0    *               255.255.255.0   U     0      0        0 eth11
link-local      *               255.255.0.0     U     0      0        0 eth10
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.130.102.1    0.0.0.0         UG    0      0        0 eth11
yast2 config is attached.

What I am confused about is why is the GW from route for 10.131.226.0 a * instead of 10.131.226.1?

Right now this VM is problematic because it can reach some IPs on the same subnet but not others. so 10.131.224.100 is reachable but .101 is not. and they are all on the same physical switch as well.

I know from basic routing that the weirdness from 226 shouldn't affect 224, but I have plenty of working examples with similar setups and this is the only thing out of place.

any help on this is greatly appreciated.


Thanks

EDIT: no firewall either. This VM was cloned from a working VM, I just cloned it and modified the IPs.

EDIT 2: I might have an IP conflict it seems... will double check
Attached Thumbnails
Click image for larger version

Name:	VM4_route_yast.jpg
Views:	13
Size:	30.3 KB
ID:	16452  

Last edited by jzoudavy; 09-15-2014 at 09:41 PM. Reason: formating, clarification
 
Old 09-16-2014, 02:26 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,838

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
If you aren't on the same subnet as another IP, then you have to send packets through a gateway to reach it. If you are on the same subnet and don't need to send through a gateway, then the routing table should have '*' for no gateway required.
 
Old 09-16-2014, 03:06 PM   #3
jzoudavy
Member
 
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

Original Poster
Rep: Reputation: Disabled
hmmm, true. but here is where it doesn't make sense:

1. I have the same setup (in the attached screenshot) via yast but some show gateway for 226.1 and this one shows a *

2. I have 3 networks. network A is my default, it's my default gw. Network B and C are 226.x and 224.x, so therefore both should have a gateway in the routing table. But it doesn't for 226.x.

thanks
 
Old 09-23-2014, 08:37 AM   #4
kaito.7
LQ Newbie
 
Registered: Jun 2014
Posts: 6

Rep: Reputation: Disabled
Hi jzoudavy,

As you can see from the output of the "route" command, "G" is the flag that signifies that the route is to a gateway. If this flag is not present then we can say that the route is to a directly connected destination.
So check the routes that you had added (/etc/sysconfig/network/routes).

The second one that I chcecked is at ifconfig
eth3 HWaddr 00:50:56:11:36:46

eth10 HWaddr 00:50:56:00:36:46

and at the attached file the device is the same for the both networks. Maybe there is a conflict (This VM was cloned from a working VM, I just cloned it and modified the IPs). You have to change and the MAC addresses.

BRs,

Spyros

Last edited by kaito.7; 09-23-2014 at 08:38 AM.
 
  


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
Almost there (I think) wireless network config question. pete1234 Linux - Wireless Networking 6 05-24-2005 10:10 AM
Network config (10.1) (win 98) n00b question Kingrames Slackware 3 02-22-2005 01:19 AM
Debian - Network Config Question ptesone Linux - Networking 4 04-04-2004 12:04 PM
question of config network ty263 Red Hat 1 03-22-2004 01:31 PM
Question about RH7.3 network-config-users crichton Linux - Newbie 2 09-04-2002 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration