Gentoo Archives: gentoo-user

From: thegeezer@×××××××××.net
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Slighty confused about net connections
Date: Fri, 28 Nov 2014 23:22:19
Message-Id: e4fbdc3ae68e05e46e59bb1ba1ec077e@thegeezer.net
In Reply to: [gentoo-user] Slighty confused about net connections by meino.cramer@gmx.de
1 On 2014-11-28 18:35, meino.cramer@×××.de wrote:
2 > Do I really need two interfaces isb0 and usb1 with different
3 > subnets here?
4 >
5 > Or do I miss something?
6
7
8 howdy,
9 yes you do.
10 i.e.
11 PC has real-eth0="192.168.1.1/24"
12 PC has usb-eth0="192.168.2.1/24"
13 PC has usb-eth1="192.168.2.2/24"
14 sysA has usb-eth0="192.168.2.101/24"
15 sysB has usb-eth0="192.168.2.102/24"
16
17 from PC you want to ping 192.168.2.101, ok it pings
18 then you want to ping 192.168.2.102 and you have a cached route for
19 192.168.2.0/24 dev usb-eth0
20 you can get around this using policy routing but that is a bit much for
21 what you want.
22 you can always use smaller ranges for example:
23
24 PC usb-eth0="192.168.2.1/25"
25 PC usb-eth1="192.168.2.129/25"
26 sysA usb-eth0="192.168.2.101/25"
27 sysB usb-eth1"192.168.2.254/25"

Replies

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