Network in rc.conf

Development on core packages and the distribution goes on in here.

Network in rc.conf

Postby pepedog » Tue Jun 28, 2011 9:54 pm

After updates and reboot, no network
rc.conf.pacnew has the network like this which agrees with https://wiki.archlinux.org/index.php/Rc.conf
$this->bbcode_second_pass_code('', '# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
# - interface: name of device (required)
# - address: IP address (leave blank for DHCP)
# - netmask: subnet mask (ignored for DHCP)
# - gateway: default route (ignored for DHCP)
#
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=
netmask=
gateway=

')

My rc.conf is like https://wiki.archlinux.org/index.php/Network#Configure_IP
Network is failing with both, don't have time to look at as our business server has fallen over, but surely this is affecting others by now?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby kmihelich » Tue Jun 28, 2011 10:57 pm

Apparently both should work, my devices are still configured in the old style and working. /etc/rc.d/network allows either way.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Network in rc.conf

Postby pepedog » Tue Jun 28, 2011 11:51 pm

I think a dockstar might have died, even a no disk boot to pogo os is not getting an address.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby kmihelich » Wed Jun 29, 2011 12:05 am

Something bad happened then.. /me grabs the bagpipes
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Network in rc.conf

Postby pepedog » Wed Jun 29, 2011 12:44 am

It does seem to boot, will post some logs tomorrow. Might be uboot corruption, or mac address gone? Not done anything that might cause this.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby pepedog » Wed Jun 29, 2011 10:08 am

Aside from dead dockstar, I looked at logs
It complained /sbin/agetty was missing
On a new install /sbin/ifconfig doesn't exist, but it boots fine
So what package(s) had these
Ahh, net-tools not installed by default, contains ifconfig
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby pepedog » Wed Jun 29, 2011 3:05 pm

After quite a learning curve, the way to program a SINGLE INTERFACE is this in rc.conf
interface=eth0
address=
netmask=
gateway=

If you put in a second interface, only the second entry works
So you install netcfg and copy relevant files from /etc/network.d/examples to /etc/network.d
I ended up with 3 files called eth0 eth1 and wlan0
These get refered to in rc.conf this way
NETWORKS=(eth1 eth0 wlan0)
You get rid of network out of DAEMONS and have this
DAEMONS=(..... net-profiles .....)

Still have a problem, as wlan0 is wirless, it's starting wpa_supplicant which is stopping hostapd from starting
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby kmihelich » Wed Jun 29, 2011 3:22 pm

Yeah, I missed getting net-tools into the new rootfs. I just need to upload the new one.

Heard about the multiple interface thing, not sure why Arch went away from essentially configuring the line that gets passed to ifconfig to this, unless they're aiming for more user friendliness. No idea about the network problem, I've never seen that happen.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Network in rc.conf

Postby pepedog » Wed Jun 29, 2011 3:58 pm

I got over my problem by putting this in rc.local
/usr/bin/killall wpa_supplicant
/etc/rc.d/hostapd start
Even though hostapd is started in rc.conf
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Network in rc.conf

Postby kmihelich » Wed Jun 29, 2011 4:13 pm

So is your ethernet coming up now too?
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Next

Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 1 guest