Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category General
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 3.5.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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 

Loading...