From: David Schwartz on
On Oct 2, 11:08 pm, Burkhard Ott <news2...(a)derith.de> wrote:

> > If there's an ethernet network that corresponds to 10.156.30.0/24, it
> > needs to be connected to either eth0 or eth3. Otherwise, you need a
> > configuration that makes sense for two interfaces on the same IP
> > network, such as bridging.

> This setup as a bridge would be very funny and if your switch doesn't use
> stp the fun swaps over to the switch too :-D.

I think his eth0 goes to a LAN of some kind and his eth3 is a
crossover cable to a machine not connected to the LAN. But it's hard
to be sure. If the machine at the end of the crossover cable is also
bridging and also connected to the LAN, and the LAN switch doesn't do
STP, then yes, it would be very funny.

DS
From: The Derfer on
eth0 does go to a LAN.
Where does this leave me?
Can't I make up any non-routable address of the type 10.156.30.x (x
not the same as
for eth0) for eth3? And so long as the laptop at the other end of the
crossover
cable also has a 10.156.30.x address (or does that technically
matter?) it ought
to be pingable ... right? Correct me where I'm wrong; I want this to
work AND
learn how to do it right.

Thank you.


On Oct 3, 6:50 pm, David Schwartz <dav...(a)webmaster.com> wrote:
> On Oct 2, 11:08 pm, Burkhard Ott <news2...(a)derith.de> wrote:
>
> > > If there's an ethernet network that corresponds to 10.156.30.0/24, it
> > > needs to be connected to either eth0 or eth3. Otherwise, you need a
> > > configuration that makes sense for two interfaces on the same IP
> > > network, such as bridging.
> > This setup as a bridge would be very funny and if your switch doesn't use
> > stp the fun swapsoverto the switch too :-D.
>
> I think his eth0 goes to a LAN of some kind and his eth3 is acrossovercable to a machine not connected to the LAN. But it's hard
> to be sure. If the machine at the end of thecrossovercable is also
> bridging and also connected to the LAN, and the LAN switch doesn't do
> STP, then yes, it would be very funny.
>
> DS

From: Pascal Hambourg on
Hello,

The Derfer a �crit :
> Can't I make up any non-routable address of the type 10.156.30.x

[These addresses are routable, on a private network. They are just not
routed on the public internet.]

> (x not the same as for eth0) for eth3?

Short answer : no, you can't have the same IP subnet on separate
ethernet segments. This is the basic of IP addressing and routing.

Also, you get "martian source" messages because rp_filter is enabled on
the interfaces.
From: Jan Gerrit Kootstra on
Pascal Hambourg schreef:
> Hello,
>
> The Derfer a écrit :
>> Can't I make up any non-routable address of the type 10.156.30.x
>
> [These addresses are routable, on a private network. They are just not
> routed on the public internet.]
>
>> (x not the same as for eth0) for eth3?
>
> Short answer : no, you can't have the same IP subnet on separate
> ethernet segments. This is the basic of IP addressing and routing.
>
> Also, you get "martian source" messages because rp_filter is enabled on
> the interfaces.
The Derfer,


Put a IP-address in a range that is not used at your Linux PC or some
where else on your companies net.

Like a 10.x.y.3 on eth3 and 10.x.y.4 on the laptop where x.y is unique.


Kind regards,


Jan Gerrit
From: chuck smoko on
Hi,
I don't see a RUNNING (i.e. UP BROADCAST RUNNING) on the interface's
ifconfig. Below is an ifconfig's eth0 on my system. From my
experience, if you don't have RUNNING, you don't have "link".

[root(a)drlin001 sbin]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:06:5B:ED:39:38
inet addr:10.151.10.58 Bcast:10.151.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:426778132 errors:0 dropped:0 overruns:0 frame:0
TX packets:430171885 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:381827976 (364.1 MiB) TX bytes:2592226465 (2.4 GiB)
Base address:0xcce0 Memory:feb60000-feb80000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:165487055 errors:0 dropped:0 overruns:0 frame:0
TX packets:165487055 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:64638175 (61.6 MiB) TX bytes:64638175 (61.6 MiB)

[root(a)drlin001 sbin]#

As I can't see your dmesg output, if the interfaces are GIGE, you don't
even need a crossover cable. Of all of the ones that I have seen, GIGE
Ethernet interfaces generally know how to auto-crossover. If you�re not
sure which physical interface is eth0 and which is eth1 (or eth2), run:

ethtool -p eth0 5

This blinks the LED on the interface for five seconds without
interrupting network traffic.

Chuck Smoko


The Derfer wrote:
> I've got a RHEL 3AS box with a PCI-X network card in it and I've set
> that up as such (its ifconfig -a here):
>
> eth3 Link encap:Ethernet HWaddr 00:0A:5E:7A:E7:33
> inet addr:10.156.30.176 Bcast:10.156.30.255 Mask:255.255.255.0
> UP BROADCAST MULTICAST MTU:1500 Metric:1
> RX packets:527 errors:0 dropped:0 overruns:0 frame:0
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:62674 (61.2 Kb) TX bytes:0 (0.0 b)
> Interrupt:24
>
> Its ifcfg-eth3 looks like:
> # Broadcom Corporation|NetXtreme BCM5701 Gigabit Ethernet
> DEVICE=eth3
> ONBOOT=yes
> BOOTPROTO=static
> IPADDR=10.156.30.176
> NETMASK=255.255.255.0
> HWADDR=00:0A:5E:7A:E7:33
>
> But when I assign my laptop the address 10.156.30.213 and try to ping
> 10.156.30.176
> I can't successfully do it through a crossover cable and further get
> these messages
> in /var/log/messages. What's wrong here? Got to be a config issue (I
> think):
>
> Oct 2 12:13:41 host1 kernel: martian source 10.156.30.255 from
> 10.156.30.213, on dev eth3
> Oct 2 12:13:41 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:00
> Oct 2 12:14:50 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:14:50 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
> Oct 2 12:14:55 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:14:55 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
> Oct 2 12:15:00 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:15:00 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
> Oct 2 12:15:06 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:15:06 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
> Oct 2 12:15:47 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:15:47 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
> Oct 2 12:15:56 host1 kernel: martian source 10.156.30.176 from
> 10.156.30.213, on dev eth3
> Oct 2 12:15:56 host1 kernel: ll header: ff:ff:ff:ff:ff:ff:
> 00:15:c5:47:d2:72:08:06
>
> Netmask on my laptop is 255.255.255.0
> IP is 10.156.30.213
> No gateway specified.
>
> Routing table for linux host:
>
> [root(a)host1 user]# route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref
> Use Iface
> 1.1.1.0 * 255.255.255.0 U 0 0
> 0 eth2
> 10.156.30.0 * 255.255.255.0 U 0 0
> 0 eth0
> 10.156.30.0 * 255.255.255.0 U 0 0
> 0 eth3
> default 10.156.30.1 0.0.0.0 UG 0 0
> 0 eth0
>
> Please advise.
> THANK YOU.