1 |
covici@××××××××××.com <covici@××××××××××.com> [14-11-29 04:28]: |
2 |
> meino.cramer@×××.de wrote: |
3 |
> |
4 |
> > thegeezer@×××××××××.net <thegeezer@×××××××××.net> [14-11-29 02:56]: |
5 |
> > > On 2014-11-28 18:35, meino.cramer@×××.de wrote: |
6 |
> > > >Do I really need two interfaces isb0 and usb1 with different |
7 |
> > > >subnets here? |
8 |
> > > >Or do I miss something? |
9 |
> > > |
10 |
> > > |
11 |
> > > howdy, |
12 |
> > > yes you do. |
13 |
> > > i.e. |
14 |
> > > PC has real-eth0="192.168.1.1/24" |
15 |
> > > PC has usb-eth0="192.168.2.1/24" |
16 |
> > > PC has usb-eth1="192.168.2.2/24" |
17 |
> > > sysA has usb-eth0="192.168.2.101/24" |
18 |
> > > sysB has usb-eth0="192.168.2.102/24" |
19 |
> > > |
20 |
> > > from PC you want to ping 192.168.2.101, ok it pings |
21 |
> > > then you want to ping 192.168.2.102 and you have a cached route for |
22 |
> > > 192.168.2.0/24 dev usb-eth0 |
23 |
> > > you can get around this using policy routing but that is a bit much for |
24 |
> > > what you want. |
25 |
> > > you can always use smaller ranges for example: |
26 |
> > > |
27 |
> > > PC usb-eth0="192.168.2.1/25" |
28 |
> > > PC usb-eth1="192.168.2.129/25" |
29 |
> > > sysA usb-eth0="192.168.2.101/25" |
30 |
> > > sysB usb-eth1"192.168.2.254/25" |
31 |
> > > |
32 |
> > > |
33 |
> > Hi James, hi thegeezer |
34 |
> > |
35 |
> > I want to summerize here what works, what dont work and what I tried |
36 |
> > -- sorry I am no natie english speaker and my english is not exact |
37 |
> > enough for such things...but well...lets see.. |
38 |
> > |
39 |
> > Current setup |
40 |
> > PC: |
41 |
> > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
42 |
> > inet 192.168.10.1 netmask 255.255.255.0 broadcast 192.168.10.255 |
43 |
> > ether ee:6c:bc:6c:03:79 txqueuelen 1000 (Ethernet) |
44 |
> > |
45 |
> > Arietta A: |
46 |
> > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
47 |
> > inet 192.168.10.10 netmask 255.255.255.0 broadcast 192.168.10.255 |
48 |
> > inet6 fe80::215:f2ff:fe18:b030 prefixlen 64 scopeid 0x20<link> |
49 |
> > ether 00:15:f2:18:b0:30 txqueuelen 1000 (Ethernet) |
50 |
> > |
51 |
> > Arietta B: |
52 |
> > usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 |
53 |
> > inet 192.168.10.11 netmask 255.255.255.0 broadcast 192.168.10.255 |
54 |
> > inet6 fe80::215:f2ff:fe18:b030 prefixlen 64 scopeid 0x20<link> |
55 |
> > ether 00:15:f2:18:b0:31 txqueuelen 1000 (Ethernet) |
56 |
> > |
57 |
> > |
58 |
> > Tried: |
59 |
> > (I only have one PC...) |
60 |
> > Only Arietta A connected to PC: Works fine -- ssh login ok |
61 |
> > Only Arietta B connected to PC: Works fine -- ssh login ok |
62 |
> > |
63 |
> > Arietta A connected to PC, after it has booted Arietta B connected |
64 |
> > to the same (motherboard internal) usb-hub of the PC: Cant ssh to Arietta B but |
65 |
> > can ssh to Arietta A. |
66 |
> > Switch result if connecting done in opposite order. |
67 |
> > |
68 |
> > Question: |
69 |
> > Is one usb_0 interface on the PC enough? |
70 |
> > Is there something else wrong with my setup? |
71 |
> |
72 |
> You can't have the same ethernet card connected to two different things |
73 |
> -- you have the same ethernet address on both boards, so the poor |
74 |
> thing can only do the first one, you need another interface with a |
75 |
> different ethernet address. |
76 |
> |
77 |
> -- |
78 |
> Your life is like a penny. You're going to lose it. The question is: |
79 |
> How do |
80 |
> you spend it? |
81 |
> |
82 |
> John Covici |
83 |
> covici@××××××××××.com |
84 |
> |
85 |
|
86 |
Hi John, |
87 |
|
88 |
|
89 |
After your email I read the output of dmesg more precisely ... and now |
90 |
knowing (due to your post :) what to look for and found that |
91 |
the detection of another usb-ethernet-device attached to my PC created |
92 |
another usb<n> (first: usb0, second: usb1). |
93 |
|
94 |
I put the first Arietta into the net 192.168.10.x and the second |
95 |
Arietta into net 192.168.11.x and do two different ifconfig for usb0 |
96 |
and the other one for usb1 and TADA! - I could ssh into both! |
97 |
|
98 |
This is not THAT elegant (wasting a complete subnet), but it proofes, |
99 |
that both boards are /relly/ ok... |
100 |
|
101 |
This becomes especially important for me since I had soldered three |
102 |
"""PCB connectors""" (<<--- this is bloody typical "german English"... |
103 |
hopefully netherless at least half understandable) to both boards... |
104 |
and soldering such tiny things on very limited space is not what I |
105 |
do like most... ;) |
106 |
|
107 |
So nothing is damaged, and I am happy...until the next |
108 |
"""challange""". |
109 |
|
110 |
Thanks a lot for your help!!! |
111 |
|
112 |
Best regards, |
113 |
Meino |