FS#24769 - Cannot configure network interface without gateway
Attached to Project:
Arch Linux
Opened by jason barney (jasonx) - Saturday, 18 June 2011, 09:50 GMT
Last edited by Ionut Biru (wonder) - Saturday, 18 June 2011, 09:58 GMT
Opened by jason barney (jasonx) - Saturday, 18 June 2011, 09:50 GMT
Last edited by Ionut Biru (wonder) - Saturday, 18 June 2011, 09:58 GMT
|
Details
Summary and Info:
After net-tools was deprecated and /etc/rc.d/network was changed, is no loger possible to define a network interface with static address but without gateway. /etc/rc.d/network checks if the variable gateway is present, and if not it prints an error and exits. Should be possible to configure a network interface with static address and netmask, but without gateway, for example for a box in a LAN with no access to internet, or for a virtual machine. The fix to /etc/rc.d/network is very simple, just dont exit if the variable $gateway is not defined, and only set the route if it is defined. Steps to Reproduce: Edit /etc/rc.conf and set something like: interface=eth0 address=192.168.1.123 netmask=255.255.255.0 gateway= |
This task depends upon
Closed by Ionut Biru (wonder)
Saturday, 18 June 2011, 09:58 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#24690
Saturday, 18 June 2011, 09:58 GMT
Reason for closing: Duplicate
Additional comments about closing: