Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Airport&Ethernet -- only one works at the same time [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Sat Mar 18, 2006 4:19 am    Post subject: Airport&Ethernet -- only one works at the same time [SOL Reply with quote

Hya,

I have a rather odd problem (don't know if it's common, I haven't found anything here about it)

The thing is: I'm using my airport connection to connect to the access point via dhcp. In order
to do this I have to deacitivate eth0. If eth0 has started, nothing with eth1 (airport) works,
if it's turned off everything's fine. So I can either use the wireless net or the wired one, but
not both at the same time, which sucks, as I want to access the net AND be able to access
my machines on the LAN.

My /etc/conf.d/net:

Code:
# /etc/conf.d/net:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $

# Global config file for net.* rc-scripts


alias_eth0="192.168.66.4"
alias_eth1="192.168.66.4"

#Network LAN:
iface_eth0="192.168.1.9 broadcast 192.168.1.255 netmask 255.255.255.0"
gateway="eth0/192.168.1.1"

# Network Airport
iface_eth1="dhcp"
modules_eth1=("iwconfig")
mode_eth1="ad-hoc"
essid_eth1="Pups"
channel_eth1="1"


Is there something wrong with my config? I can't see any mistakes, but I'm just a little noob.
_________________
// k
MySpace. | Website.


Last edited by // k on Sun Mar 26, 2006 10:25 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43557
Location: 56N 3W

PostPosted: Sat Mar 18, 2006 12:35 pm    Post subject: Reply with quote

// k,

With both interfaces up, post the outputs of the following commands:-
Code:
route -n
ifconfig -a

If your public IP is there, you may want to obscure the first two octects of it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Sat Mar 18, 2006 9:43 pm    Post subject: Reply with quote

Ok,

route -n gives me:
Code:

Kernel IP Routentabelle
Ziel            Router          Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.66.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.66.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth1


and ifconfig -a gives me:
Code:

eth0      Protokoll:Ethernet  Hardware Adresse 00:03:93:B7:E2:80
          inet Adresse:192.168.1.9  Bcast:192.168.1.255  Maske:255.255.255.0
          inet6 Adresse: fe80::203:93ff:feb7:e280/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:960 (960.0 b)  TX bytes:468 (468.0 b)
          Interrupt:41 Basisadresse:0x6800

eth0:1    Protokoll:Ethernet  Hardware Adresse 00:03:93:B7:E2:80
          inet Adresse:192.168.66.4  Bcast:192.168.66.255  Maske:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:41 Basisadresse:0x6800

eth1      Protokoll:Ethernet  Hardware Adresse 00:30:65:13:37:45
          inet Adresse:192.168.0.14  Bcast:192.168.0.255  Maske:255.255.255.0
          inet6 Adresse: fe80::230:65ff:fe13:3745/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:361848 errors:0 dropped:0 overruns:0 frame:0
          TX packets:381855 errors:1656 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:55903461 (53.3 Mb)  TX bytes:99666036 (95.0 Mb)
          Interrupt:57

eth1:1    Protokoll:Ethernet  Hardware Adresse 00:30:65:13:37:45
          inet Adresse:192.168.66.4  Bcast:192.168.66.255  Maske:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:57

ipddp0    Protokoll:UNSPEC  Hardware Adresse 00-00-00-00-00-00-0F-FE-00-00-00-00-00-00-00-00
          BROADCAST NOARP MULTICAST  MTU:585  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Protokoll:Lokale Schleife
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6 Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1925 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1925 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:123820 (120.9 Kb)  TX bytes:123820 (120.9 Kb)

sit0      Protokoll:IPv6-nach-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)



Sorry if some terms are in German, I use a German localisation.
I'm using an iBook 600 Mhz dual USB, if that's of any help.
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
totila
n00b
n00b


Joined: 24 Nov 2003
Posts: 10
Location: Italy (Turin)

PostPosted: Tue Mar 21, 2006 2:42 am    Post subject: Reply with quote

// k wrote:

Code:

0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth1



Here is the problem! the second row is "shadowed" from the first one.... but.... i hadn't a solution...because this a kernel fault:
when the cable is unplugged the kernel should report as inactive that link....ad skip it using the routing table....
some "dirty" solutions could be put a eth0 path more "expensive" than eth1 but jou should get the same problem but inverted :cry:


i have just 2 hits (but i don't like them!):
-> make two simple script, using sudo..... (it's terrible, i know!)
-> use ifplugd on eth0 interface..... (it's better)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43557
Location: 56N 3W

PostPosted: Tue Mar 21, 2006 7:10 pm    Post subject: Reply with quote

// k,

You have several problems there. Each adaptior is in both subnets, which confuses the kernels routing table.
Remove the alias addresses from both adaptors.

When both interfaces are up now, you will still get two defualt routes, which is not correct either.
Use the route comamnd to delete the wrong one.
Code:
route del defaut <If_name>

You should now be able to communicate on both networks and get to in internet with the defualt route.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
// k
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2004
Posts: 122
Location: Germany | UK | India

PostPosted: Sun Mar 26, 2006 10:24 am    Post subject: Reply with quote

Well, I'll be...it was indeed the route. Thanks you guys!

Sorry about my rotten net config, at least now I'm a little wiser.
_________________
// k
MySpace. | Website.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum