You are not logged in.

#1 2008-10-01 07:04:09

synthead
Member
Registered: 2006-05-09
Posts: 1,337

desktop w/ netcfg2 + crossover from laptop = No connection available

I have a laptop that I run dnsmasq and an iptables deal to basically provide a client with the internet via the ethernet port.  On my desktop computer, netcfg2 hates this setup, always failing with ...

[max@gayforceone ~]$ sudo netcfg2 wired
:: wired up  - No connection available                                   [FAIL]

... but I'm simply using the most basic of basic config, a copy of /etc/network.d/examples/ethernet.example ...

CONNECTION="ethernet"
DESCRIPTION="A very basic ethernet profile, using dhcp"
INTERFACE=eth0
IP="dhcp"
DHCP_TIMEOUT=10

However, I can manually bring the interface up, like so ...

[max@gayforceone network.d]$ sudo dhcpcd eth0
[max@gayforceone network.d]$ ping google.com
PING google.com (64.233.187.99) 56(84) bytes of data.
64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=1 ttl=240 time=90.5 ms
64 bytes from jc-in-f99.google.com (64.233.187.99): icmp_seq=2 ttl=240 time=93.9 ms

Another interesting quirk is that the script works after I get an IP myself.  If I bring down the interface and kill dhcpcd, running "netcfg2 wired" (my config) works great.  Based on this, my hypothesis for this is that the computers see the connection as dead until the interface is brought up on my desktop, and that netcfg2 is expecting to see a live ethernet connection before it brings the port up and negotiates an IP.  But that's just my thought!  I could be wrong, and regardless, I wouldn't know how to configure netcfg2 to fix this anyway, which is why I'm posting big_smile  What do I need to do to my script to fix this?

Offline

#2 2008-10-01 07:34:08

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: desktop w/ netcfg2 + crossover from laptop = No connection available

No connection available means mii-tool is saying there's no cable plugged in.

Offline

#3 2008-10-02 23:19:56

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: desktop w/ netcfg2 + crossover from laptop = No connection available

I have a crossover cable plugged in between my laptop and this computer

Offline

#4 2008-10-15 17:03:52

pfleidi
Member
Registered: 2008-02-25
Posts: 5

Re: desktop w/ netcfg2 + crossover from laptop = No connection available

I have the same problem here.

mii-tool eth1                                                                                                               :(
SIOCGMIIREG on eth1 failed: Input/output error
eth1: 10 Mbit, half duplex, no link

Seems to be an issue with mii-tool. Ethtool works fine:

Settings for eth1:
    Supported ports: [ TP ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Full 
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: Twisted Pair
    PHYAD: 1
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbag
    Wake-on: g
    Current message level: 0x00000001 (1)
    Link detected: yes

After manually setting up the ip-address mii-tool recognizes the connection:

mii-tool eth1  
SIOCGMIIREG on eth1 failed: Input/output error
eth1: negotiated 100baseTx-FD flow-control, link ok

Offline

Board footer

Powered by FluxBB