diff options
author | Tom Gundersen <teg@jklm.no> | 2011-06-10 13:47:50 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-06-10 13:47:50 +0200 |
commit | 054e8d38fe9e9cf842600fc23d725617ce3611ce (patch) | |
tree | ac3baaa38f8781810ecb41b4045de4871666c602 | |
parent | f262299928f1aca454a0bbadbcda144b3fb2e7e2 (diff) | |
parent | 3d45a70d3b7e898923638dbb795e50c2e7c378c9 (diff) |
Merge remote-tracking branch 'djgera/djgera'
-rwxr-xr-x | network | 2 | ||||
-rw-r--r-- | rc.conf | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -32,7 +32,7 @@ network_up() { return 1 fi done - ip addr add $address/$netmask dev $interface || return 1 + ip addr add $address/$netmask broadcast ${broadcast:-+} dev $interface || return 1 ip route add default via $gateway || return 1 else dhcpcd $DHCPCD_ARGS $interface || return 1 @@ -65,12 +65,14 @@ HOSTNAME="myhost" # - interface: name of device (required) # - address: IP address (leave blank for DHCP) # - netmask: subnet mask (ignored for DHCP) +# - broadcast: broadcast address (ignored for DHCP) (optional) # - gateway: default route (ignored for DHCP) # # Static IP example # interface=eth0 # address=192.168.0.2 # netmask=255.255.255.0 +# broadcast=192.168.0.255 # gateway=192.168.0.1 # # DHCP example @@ -82,6 +84,7 @@ HOSTNAME="myhost" interface= address= netmask= +broadcast= gateway= # Setting this to "yes" will skip network shutdown. |