RE: Dual port NIC and switching



Let me see if I understand what you attempt to do. In your pc you have 2 networks adapters and want to made a temporal bridge between both, if is that the case an iptables rule should do the work in an easiest way. But if it has to be permanent this documentation can help you [1] but you have to remember “Don't set the IP address, and don't let the startup scripts run DHCP on the Ethernet interfaces either. The IP address needs to be set after the bridge has been configured.” Maybe because that the bridge isn’t working right for you.

 

Braiam Peguero

 

De: networkmanager-list-bounces gnome org [mailto:networkmanager-list-bounces gnome org] En nombre de José Pablo Méndez Soto
Enviado el: domingo, 20 de marzo de 2011 03:30 p.m.
Para: networkmanager-list gnome org
Asunto: Dual port NIC and switching

 

Hello,

How can I use network manager so that I can plug my girlfriends laptop into port 1 of my computer, while port 0 is plugged to the loooong cable that goes back to my encore 8 port switch and from there to my DSL modem?

I have tried to use bridge-control tools, and also acitvated packet forwarding like this: echo "1" > /proc/sys/net/ipv4/ip_forward

I think the problem is around here:

me@pc:~$ ifconfig
eth1      Link encap:Ethernet  HWaddr 04:4b:80:80:80:03 
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::64b:80ff:fe80:8003/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
        
eth0-eth1 Link encap:Ethernet  HWaddr 04:4b:80:80:80:03 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
        
See how the 2 ports have same MAC? How can I configure network manager to handle 2 different ports? And how would I go about configuring it to route packets out to the internet coming from my chicks's laptop?

Ubuntu 10.10
Asus Crosshair mobo version 1

Thanks,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]