You are not logged in.
Pages: 1
Hello!
I've been using my Arch-box as a router (among other things) for a while now.
It has 2 Ethernet interfaces (wan_eth0, lan_eth0) and 1 Wireless interface (lan_wifi0); One of the Ethernet interfaces connects to the internet, while the other can't seem to connect to anything at all.
The Wifi is excellent, but works as a bottleneck. I'm not super-experienced with Arch/Linux but I've used it (somewhat passively) for several years, but I haven't been able to figure out what's wrong with the interface despite several attempts. A recent update forced me to reconfigure the network settings (adding a bridge interface, lan_br0), which prompted me to try again, but I haven't gotten anywhere.
I use udev to change the interfaces' names, netctl to create the bridge interface, hostapd to host the Wifi AP, iptables is properly configured for NAT, dhcpd listens to the server's LAN IP (assigned to the bridge interface), and dhcpcd runs on the external interface.
$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: lan_eth0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast master lan_br0 state DOWN group default qlen 1000
link/ether 00:19:5b:86:9d:ef brd ff:ff:ff:ff:ff:ff
3: wan_eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 00:13:d3:b8:17:09 brd ff:ff:ff:ff:ff:ff
inet xxx.xxx.xxx.xxx/24 brd xxx.xxx.xxx.255 scope global wan_eth0
valid_lft forever preferred_lft forever
inet6 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 scope link
valid_lft forever preferred_lft forever
4: lan_wifi0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc mq master lan_br0 state UP group default qlen 1000
link/ether 00:18:39:18:4e:51 brd ff:ff:ff:ff:ff:ff
inet6 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 scope link
valid_lft forever preferred_lft forever
5: lan_br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
link/ether 00:18:39:18:4e:51 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.1/24 brd 192.168.0.255 scope global lan_br0
valid_lft forever preferred_lft forever
inet6 xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/64 scope link
valid_lft forever preferred_lft forever$ lspci -vvnn
[...]
00:0a.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6105/VT6106S [Rhine-III] [1106:3106] (rev 86)
Subsystem: D-Link System Inc DFE-530TX rev C [1186:1403]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 32 (750ns min, 2000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 18
Region 0: I/O ports at d000 [size=256]
Region 1: Memory at f6038000 (32-bit, non-prefetchable) [size=256]
[virtual] Expansion ROM at 80000000 [disabled] [size=64K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: via-rhine
Kernel modules: via_rhine
[...]The external interface (wan_eth0) uses the same kernel driver/module as lan_eth0 (the one that isn't working).
I have a working cable connecting lan_eth0 to one of my PCs.
Unfortunately I can't try the lan_eth0 device in another computer, nor connect it to another computer than it's already connected to.
Thanks for any help!
Offline
NO-CARRIER suggests that it doesn't see the cable as plugged in. Have you verified that the cable is in working condition and that it's properly inserted?
Offline
Well, before the cable I'm using now, I was using one that had connected my previous router to my ADSL socket, which didn't work. So now I'm trying one that's never been used before - it's straight out of the bag it came in and has been lying in a box since it was bought. But no, I have no easy way of verifying that it's functional. It is properly inserted though, but there's no green light in the port I plug it into.
Last edited by Noxic (2014-03-21 10:12:32)
Offline
I'm not entirely clear whether this used to work, something has changed and it doesn't work anymore or it never worked ?
I have a working cable connecting lan_eth0 to one of my PCs.
Usually you would have a switch or hub in between there (?). I'm not really up to date on this but I think, earlier when not using a switch/hub you would have needed a cross-over cable to do this. A few searches on google reveal that this may not be needed anymore. Depending on how old your network card is...
The wiki says "Note: If one of the two computers has a gigabit ethernet card, a crossover cable is not necessary and a regular ethernet cable should be enough".
(https://wiki.archlinux.org/index.php/Internet_sharing)
Also it seems that you can check using e.g. ethtool looking for Auto-negotiation.
Last edited by rebootl (2014-03-21 10:36:00)
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
I'm not entirely clear whether this used to work, something has changed and it doesn't work anymore or it never worked ?
I have a working cable connecting lan_eth0 to one of my PCs.
Usually you would have a switch or hub in between there (?). I'm not really up to date on this but I think, earlier when not using a switch/hub you would have needed a cross-over cable to do this. A few searches on google reveal that this may not be needed anymore. Depending on how old your network card is...
The wiki says "Note: If one of the two computers has a gigabit ethernet card, a crossover cable is not necessary and a regular ethernet cable should be enough".
(https://wiki.archlinux.org/index.php/Internet_sharing)Also it seems that you can check using e.g. ethtool looking for Auto-negotiation.
1) The connection itself has never worked, but the cable is as good as new and should be working.
2) The Arch box (which has lan_eth0) is supposed to act as a hub (or a router specifically), though it only has two ethernet interfaces (lan_eth0 & wan_eth0) and one Wifi (lan_wifi0). The wifi works fine.
It seems I haven't been using a crossover cable, though. I read up on it a little and apparently if the colors of the pins on the ends of a cable are in the same order, they're "regular" aka "patch" cables. I have a few cables with differently ordered pins, but they're marked "patch cable", and either way I'm pretty sure they don't work.
Also, apparently if the network card has "Auto-MDIX", it doesn't matter what kind of cable you're using, which is probably what the wiki note refers to. I don't know how to check if my card has that, I'm going to google it now.
I'm not familiar with ethtool, but it appears I can't get much information about lan_eth0? I understand that much of the information would only be available when the interface is up, but shouldn't there be more than this?
$ ethtool -s lan_eth0 mdix on
setting MDI not supported
$ ethtool --help | grep -i show
ethtool -a|--show-pause DEVNAME Show pause options
ethtool -c|--show-coalesce DEVNAME Show coalesce options
ethtool -g|--show-ring DEVNAME Query RX/TX ring parameters
ethtool -k|--show-features|--show-offload DEVNAME Get state of protocol offload and other features
ethtool -i|--driver DEVNAME Show driver information
ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking)
ethtool -S|--statistics DEVNAME Show adapter statistics
ethtool -n|-u|--show-nfc|--show-ntuple DEVNAME Show Rx network flow classification options or rules
ethtool -T|--show-time-stamping DEVNAME Show time stamping capabilities
ethtool -x|--show-rxfh-indir DEVNAME Show Rx flow hash indirection
ethtool -P|--show-permaddr DEVNAME Show permanent hardware address
ethtool -l|--show-channels DEVNAME Query Channels
ethtool --show-priv-flags DEVNAME Query private flags
ethtool --show-eee DEVNAME Show EEE settings
ethtool -h|--help Show this help
ethtool --version Show version number
$ ethtool -a lan_eth0
Pause parameters for lan_eth0:
Cannot get device pause settings: Operation not supported
$ ethtool -c lan_eth0
Coalesce parameters for lan_eth0:
Cannot get device coalesce settings: Operation not supported
$ ethtool -g lan_eth0
Ring parameters for lan_eth0:
Cannot get device ring settings: Operation not supported
$ ethtool -k lan_eth0
Features for lan_eth0:
rx-checksumming: off [fixed]
tx-checksumming: off
tx-checksum-ipv4: off [fixed]
tx-checksum-ip-generic: off [fixed]
tx-checksum-ipv6: off [fixed]
tx-checksum-fcoe-crc: off [fixed]
tx-checksum-sctp: off [fixed]
scatter-gather: off
tx-scatter-gather: off [fixed]
tx-scatter-gather-fraglist: off [fixed]
tcp-segmentation-offload: off
tx-tcp-segmentation: off [fixed]
tx-tcp-ecn-segmentation: off [fixed]
tx-tcp6-segmentation: off [fixed]
udp-fragmentation-offload: off [fixed]
generic-segmentation-offload: off [requested on]
generic-receive-offload: on
large-receive-offload: off [fixed]
rx-vlan-offload: off [fixed]
tx-vlan-offload: off [fixed]
ntuple-filters: off [fixed]
receive-hashing: off [fixed]
highdma: off [fixed]
rx-vlan-filter: off [fixed]
vlan-challenged: off [fixed]
tx-lockless: off [fixed]
netns-local: off [fixed]
tx-gso-robust: off [fixed]
tx-fcoe-segmentation: off [fixed]
tx-gre-segmentation: off [fixed]
tx-ipip-segmentation: off [fixed]
tx-sit-segmentation: off [fixed]
tx-udp_tnl-segmentation: off [fixed]
tx-mpls-segmentation: off [fixed]
fcoe-mtu: off [fixed]
tx-nocache-copy: off
loopback: off [fixed]
rx-fcs: off [fixed]
rx-all: off [fixed]
tx-vlan-stag-hw-insert: off [fixed]
rx-vlan-stag-hw-parse: off [fixed]
rx-vlan-stag-filter: off [fixed]
l2-fwd-offload: off [fixed]
$ ethtool -i lan_eth0
driver: via-rhine
version: 1.5.1
firmware-version:
bus-info: 0000:00:0a.0
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
$ ethtool -p lan_eth0
Cannot identify NIC: Operation not supported
$ ethtool -S lan_eth0
no stats available
$ ethtool -n lan_eth0
Cannot get RX rings: Operation not supported
rxclass: Cannot get RX class rule count: Operation not supported
RX classification rule retrieval failed
$ ethtool -T lan_eth0
Time stamping parameters for lan_eth0:
Capabilities:
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
$ ethtool -x lan_eth0
Cannot get RX ring count: Operation not supported
$ ethtool -P lan_eth0
Permanent address: 00:19:5b:86:9d:ef
$ ethtool -l lan_eth0
Channel parameters for lan_eth0:
Cannot get device channel parameters
: Operation not supported
$ ethtool --show-priv-flags lan_eth0
No private flags defined
$ ethtool --show-eee lan_eth0
Cannot get EEE settings: Operation not supported
$ ethtool lan_eth0
Settings for lan_eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000000 (0)
Link detected: noNot sure if any of the above helps at all, apart from how little information there is I don't notice anything wrong. Anyway it seems auto-negotiation is enabled (as it should?).
UPDATE:
According to this webpage my card does not have Auto-MDI, so I -must- use a crossover cable. I'll try it and see if I notice any difference.
Last edited by Noxic (2014-03-21 15:25:33)
Offline
As for the interface itself, I think your first output is actually indicating that it's up.
2: lan_eth0: <NO-CARRIER,BROADCAST,MULTICAST,PROMISC,UP> mtu 1500 qdisc pfifo_fast master lan_br0 state DOWN group default qlen 1000I think the first UP inside the <> does matter, not the later state DOWN. That's said on the wifi wiki (https://wiki.archlinux.org/index.php/Wi … activation). I checked here, by setting down and up, and I think it's the same for ethernet. Though I don't know what the second "state DOWN" actually stands for (maybe someone could explain this?).
Last edited by rebootl (2014-03-21 16:00:10)
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
The up in the angled brackets is for the interface itself (eg `ip link set XXX up` / `ip link set XXX down`). The Up/Down after the angled brackets is for the connection. I know nothing of the sort of connection desired here, but for typical ethernet connections, the indicator in the angled brakets would read 'UP' after ip link set XXX up, while the indicator after the brackets would read 'UP' after a successful dhcpcd/dhclient association.
Last edited by Trilby (2014-03-21 16:04:42)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Online
I see, so the interface is up but it can't establish a connection? That clears things up a bit, thanks.
I tried using the cables marked "patch cable" that had differently ordered pins on each end, but it didn't make any difference. I'm going to look for a proper crossover cable and see if it works, but it might take a while. Also going to keep my eye open for an alternative network card. Until then I'm open for any other suggestions in case the crossover cable isn't the problem.
Last edited by Noxic (2014-03-21 16:14:41)
Offline
I am really confused. It may be deprecated, but can you please post the output of iwconfig ?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I am really confused. It may be deprecated, but can you please post the output of iwconfig ?
Apparently
Why ? The OP has said that his wifi is working. I just cited the wifi wiki for the interpretation of the ip <whatever> command. So, we were talking about wired ethernet. Why would you want the output of iwconfig, do you mean because of the "bottleneck" in #1 ?
Edit: Or did you mean ipconfig ?
Last edited by rebootl (2014-03-21 20:15:24)
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
No, I am not that confused. ![]()
ewaller$@$odin ~ 1008 %iwconfig
lo no wireless extensions.
enp3s0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:"Woodlyn"
Mode:Managed Frequency:2.412 GHz Access Point: C4:3D:C7:5D:EB:8F
Bit Rate=48 Mb/s Tx-Power=30 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=62/70 Signal level=-48 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:164 Invalid misc:4373 Missed beacon:0
ewaller$@$odin ~ 1009 %He has an odd mix of names lan_eth0, wan_eth0, lan_wifi0. I just want to make certain that the network he is trying to get running is not seen as a wireless network. Mostly a sanity check.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Not sure what you mean with that lan_eth0 would be seen as wireless, but it's not.
Does this work as a substitute for iwconfig's output?
$ iw dev
phy#0
Interface lan_wifi0
ifindex 4
wdev 0x1
addr 00:18:39:18:4e:51
ssid Kimikimis
type AP
channel 5 (2432 MHz), width: 20 MHz (no HT), center1: 2432 MHzI named them that way out of personal preference, it makes it easier for me to identify their roles; wan_* are connected to the WAN (internet), while lan_* are LAN connections. Finally lan_br0 is a bridge for LAN connections.
Offline
Edit: Or did you mean ipconfig ?
Windows commands? Now who is confused? ![]()
Offline
Meh, it's me... I meant ifconfig of course. (Probably the only one where the Windows name made more sense to me...)
Ah, yeah, the sanity checks, I should've known...
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
How about just switching the cable from wlan_eth0 to the lan_eth0 to see if the LED lights up?
That you write that interface never worked might indicate a hardware fault (e.g. the socket). Check the bios as well whether interfaces may be de-/activated individually.
The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.
Offline
How about just switching the cable from wlan_eth0 to the lan_eth0 to see if the LED lights up?
That you write that interface never worked might indicate a hardware fault (e.g. the socket). Check the bios as well whether interfaces may be de-/activated individually.
Well, I tried it and no LED lights came on. "ip link" and "ip addr" also gave the same results, and I was unable to run dhcpcd on lan_eth0:
$ systemctl start dhcpcd@lan_eth0
Job for dhcpcd@lan_eth0.service failed. See 'systemctl status dhcpcd@lan_eth0.service' and 'journalctl -xn' for details.
$ systemctl status -l dhcpcd@lan_eth0.service
dhcpcd@lan_eth0.service - dhcpcd on lan_eth0
Loaded: loaded (/usr/lib/systemd/system/dhcpcd@.service; enabled)
Active: failed (Result: exit-code) since Sat 2014-03-22 17:56:12 CET; 9s ago
Process: 3630 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)
Mar 22 17:55:42 VelvetCastle dhcpcd[3630]: version 6.3.2 starting
Mar 22 17:55:42 VelvetCastle dhcpcd[3630]: lan_eth0: waiting for carrier
Mar 22 17:56:12 VelvetCastle systemd[1]: dhcpcd@lan_eth0.service: control process exited, code=exited status=1
Mar 22 17:56:12 VelvetCastle systemd[1]: Failed to start dhcpcd on lan_eth0.
Mar 22 17:56:12 VelvetCastle systemd[1]: Unit dhcpcd@lan_eth0.service entered failed state.
$ journalctl -xnjournalctl -xn
-- Logs begin at Sat 2014-02-01 00:09:49 CET, end at Sat 2014-03-22 17:57:23 CET. --
Mar 22 17:57:11 VelvetCastle dhcpcd[380]: wan_eth0: carrier acquired
Mar 22 17:57:11 VelvetCastle dhcpcd[380]: wan_eth0: IAID d3:b8:17:09
Mar 22 17:57:11 VelvetCastle dhcpcd[380]: wan_eth0: soliciting an IPv6 router
Mar 22 17:57:11 VelvetCastle dhcpcd[380]: wan_eth0: rebinding lease of xxx.xxx.xxx.xxx
Mar 22 17:57:16 VelvetCastle dhcpcd[380]: wan_eth0: leased xxx.xxx.xxx.xxx for 10800 seconds
Mar 22 17:57:16 VelvetCastle dhcpcd[380]: wan_eth0: adding route to xxx.xxx.xxx.0/24
Mar 22 17:57:16 VelvetCastle dhcpcd[380]: wan_eth0: adding default route via xxx.xxx.xxx.1
Mar 22 17:57:20 VelvetCastle dhcpd[446]: DHCPINFORM from 192.168.0.101 via lan_br0
Mar 22 17:57:20 VelvetCastle dhcpd[446]: DHCPACK to 192.168.0.101 (00:1b:2f:cf:6d:c6) via lan_br0
Mar 22 17:57:23 VelvetCastle dhcpcd[380]: wan_eth0: no IPv6 Routers availableThen again, I haven't re-configured anything. Should I?
Offline
You have not shared the config, so it's hard for others to tell. But since it does not appear to detect the link/cable but the module apparently loads fine, the hardware may be faulty - you can check the socket visually at least.
The last thing I would suggest is to put an option file into /etc/modprobe.d/ to load the module "via_rhine" with the option "avoid_D3=1" (suggested my modinfo). Then on reboot, change the MAC address first of the lan_eth0 interface (suggested by a quick google for the card is that the firmware has a bug which may/may not be related). And finally try again with the known working link cable, manually putting the link up/down and checking results.
Is this older hardware or one of the new (2012-) Via mini-ITX boards ?
The painting in my profile is "Eros" by Paul Klee. He is credited in the lower left, but that got blurry during the downscale.
Offline
Pages: 1