[Netkit.users] Link A - B - C
Ronald J. Srodawa
srodawa a oakland.edu
Ven 25 Mar 2005 15:56:44 CET
Every network adapter must have a unique IP address. The destination IP
address is used to map to a physical adapter. Thus, eth0 and eth1 on the
machine you call 10.0.0.2 must have different IP addresses. These two IP
addresses should be on different subnets to hav eeverything realistic.
Just look at the output of ifconfig -a on a real system that is connected
to two networks get insight into this. Note that the netmask is used on
each subnet to define the set of IP addresses inside that network.
On Fri, 25 Mar 2005, Alpt wrote:
> Hi there,
> I need to reconstruct with netkit the following topology:
> 10.0.0.1 10.0.0.2 10.0.0.3
> A(eth0) -- (eth0)B(eth1) -- (eth0)C
> B must have only one ip.
> The purpose of this is having an ad-hoc network were
> A is directly linked with B and B with C, but A doesn't see C.
> I'm trying with:
> $ vstart pc1 --eth0=A $X
> $ vstart pc2 --eth0=A --eth1=B $X
> $ vstart pc3 --eth0=B $X
> pc3# ifconfig eth0 10.0.0.3
> pc1# ifconfig eth0 10.0.0.1
> pc2# /sbin/brctl addbr br0
> /sbin/brctl addif br0 eth1
> /sbin/brctl addif br0 eth0
> /sbin/ifconfig eth0 0.0.0.0 promisc up
> /sbin/ifconfig eth1 0.0.0.0 promisc up
> ifconfig eth0 hw ether 00:00:00:00:00:06
> ifconfig eth1 hw ether 00:00:00:00:00:07
> /sbin/ifconfig br0 10.0.0.2 up
> But this doesn't work at all.
> Any hints?
> Best Regards
> "I don't know nothing" The One Who reached the Thinking Matter '.'
> [ Alpt --- Freaknet Medialab ]
> [ GPG Key ID 441CF0EE ]
> [ Key fingerprint = 8B02 26E8 831A 7BB9 81A9 5277 BFF8 037E 441C F0EE ]
> Netkit.users mailing list
> Netkit.users a pop.dia.uniroma3.it
| Ronald J. Srodawa | Internet: srodawa a oakland.edu |
| School of Engineering and CS | Voice: (248) 370-2247 |
| Oakland University | FAX: (248) 370-4625 |
| Rochester, Michigan 48309-4478 | |
Maggiori informazioni sulla lista