Gentoo Archives: gentoo-user

From: covici@××××××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Slighty confused about net connections
Date: Sat, 29 Nov 2014 03:25:18
Message-Id: 28529.1417231506@ccs.covici.com
In Reply to: Re: [gentoo-user] Slighty confused about net connections by meino.cramer@gmx.de
1 meino.cramer@×××.de wrote:
2
3 > thegeezer@×××××××××.net <thegeezer@×××××××××.net> [14-11-29 02:56]:
4 > > On 2014-11-28 18:35, meino.cramer@×××.de wrote:
5 > > >Do I really need two interfaces isb0 and usb1 with different
6 > > >subnets here?
7 > > >Or do I miss something?
8 > >
9 > >
10 > > howdy,
11 > > yes you do.
12 > > i.e.
13 > > PC has real-eth0="192.168.1.1/24"
14 > > PC has usb-eth0="192.168.2.1/24"
15 > > PC has usb-eth1="192.168.2.2/24"
16 > > sysA has usb-eth0="192.168.2.101/24"
17 > > sysB has usb-eth0="192.168.2.102/24"
18 > >
19 > > from PC you want to ping 192.168.2.101, ok it pings
20 > > then you want to ping 192.168.2.102 and you have a cached route for
21 > > 192.168.2.0/24 dev usb-eth0
22 > > you can get around this using policy routing but that is a bit much for
23 > > what you want.
24 > > you can always use smaller ranges for example:
25 > >
26 > > PC usb-eth0="192.168.2.1/25"
27 > > PC usb-eth1="192.168.2.129/25"
28 > > sysA usb-eth0="192.168.2.101/25"
29 > > sysB usb-eth1"192.168.2.254/25"
30 > >
31 > >
32 > Hi James, hi thegeezer
33 >
34 > I want to summerize here what works, what dont work and what I tried
35 > -- sorry I am no natie english speaker and my english is not exact
36 > enough for such things...but well...lets see..
37 >
38 > Current setup
39 > PC:
40 > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
41 > inet 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255
42 > ether ee:6c:bc:6c:03:79 txqueuelen 1000 (Ethernet)
43 >
44 > Arietta A:
45 > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
46 > inet 192.168.10.10 netmask 255.255.255.0 broadcast 192.168.10.255
47 > inet6 fe80::215:f2ff:fe18:b030 prefixlen 64 scopeid 0x20<link>
48 > ether 00:15:f2:18:b0:30 txqueuelen 1000 (Ethernet)
49 >
50 > Arietta B:
51 > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
52 > inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255
53 > inet6 fe80::215:f2ff:fe18:b030 prefixlen 64 scopeid 0x20<link>
54 > ether 00:15:f2:18:b0:31 txqueuelen 1000 (Ethernet)
55 >
56 >
57 > Tried:
58 > (I only have one PC...)
59 > Only Arietta A connected to PC: Works fine -- ssh login ok
60 > Only Arietta B connected to PC: Works fine -- ssh login ok
61 >
62 > Arietta A connected to PC, after it has booted Arietta B connected
63 > to the same (motherboard internal) usb-hub of the PC: Cant ssh to Arietta B but
64 > can ssh to Arietta A.
65 > Switch result if connecting done in opposite order.
66 >
67 > Question:
68 > Is one usb_0 interface on the PC enough?
69 > Is there something else wrong with my setup?
70
71 You can't have the same ethernet card connected to two different things
72 -- you have the same ethernet address on both boards, so the poor
73 thing can only do the first one, you need another interface with a
74 different ethernet address.
75
76 --
77 Your life is like a penny. You're going to lose it. The question is:
78 How do
79 you spend it?
80
81 John Covici
82 covici@××××××××××.com

Replies

Subject Author
Re: [gentoo-user] Slighty confused about net connections meino.cramer@×××.de