You are not logged in.
Pages: 1
To create a network device, I know I can just add an entry in rc.conf . But what if, say, an interface exists but it's device is just commented out in rc.conf? How can I "create" the device manually without editing rc.conf and rebooting?
I suppose this could be reworded as: How does a network interface get mapped to a device number, and how can I do so manually?
Offline
When the appropriate module is loaded, the interface is created. In Arch, the module is loaded automatically by udev when the device is detected, so you don't have to create anything yourself. For ethernet devices, the next available ethX is assigned i.e. first interface is eth0, second eth1, etc. Similarly for wifi devices - wlan0 etc. The rc.conf entry that you refer to does not create anything - it simply configures an existing interface.
Manual interface configuration is done with ifconfig and optionally, dhcpcd, iwconfig and/or wpa_supplicant, depending on requirements.
<edit>
Also, you don't need to reboot after changing the /etc/rc.conf network config - just restart the network init script.
Offline
just restart the network init script.
/etc/rc.d/network restart
If you want to see what network devices have been detected run ifconfig -a
Offline
Ah, I see. I was doing just plain ifconfig and not seeing my (not configured in rc.conf) eth0. It shows in ifconfig -a, though. I thought ifconfig did -a by default, now I know that it just shows the configured ones.
I had never taken time to actually look through the rc.d/network script -- doing so has been quit educational.
Thanks guys.
Offline
Pages: 1