nbd
8d65fda8a8
base-files: bridge config, avoid having a random ipv6 ll address
...
So far, we are setting the bridge interface up before having added any
bridge interface ports. This results in the bridge assigning a random
mac address to its bridge interface and therefore IPv6 assigning a
matching link local address to the bridge interface as soon as the
bridge interface is up. After adding the first bridge port interface,
the bridge's mac address is reset correctly, however the IPv6 link
local address stays the same.
This commit ensures that we are at least having the IPv6 link local
address of the first interface added to the bridge instead of a random
one.
Signed-off-by: Linus Lüssing <linus.luessing@web.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26426 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-03 01:23:45 +00:00
jow
b543bf484a
[package] base-file: cleanup ipv6 enabling in unbridge
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25473 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-12 16:14:15 +00:00
jow
370e79ea76
[package] base-files:
...
- properly disable IPv6 on bridge ports
- introduce accept_ra option, defaults to true for dhcp interfaces, false for others
- introduce send_rs option, defaults to true for static interfaces, false for others
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25454 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-02-11 00:39:11 +00:00
jow
09e5fb022a
[package] base-files: fix a typo in processing of additional dhcp request opts
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25239 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 17:06:07 +00:00
jow
414b1d969f
[package] base-files: fix handling of dhcp "reqopts" option
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-29 13:45:16 +00:00
jow
93d22b0af8
[package] base-files: implement "reqopts" parameter for dhcp interfaces to specify additional dhcp options to request
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24780 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-12-22 07:20:24 +00:00
jow
293671d952
[package] base-files: disable ipv6 on bridge ports, this prevents stray RA assigned and link local addresses on bridge member devices
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24194 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-30 00:46:21 +00:00
jow
b71062831c
[package] base-file: add metric option for static and dhcp protos, this simplifies the management of multiple default routes
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24020 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-11-17 19:11:50 +00:00
jow
fff0472ed2
[package] base-files: add udhcpc vendorid option ( #7744 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-10-06 21:21:28 +00:00
jow
0f55e30c2e
[package] base-files: kill possibly existing udhcpc instance when bringing up a dhcp iface, utilize service_kill() in dhcp shutdown.
...
Based on patch by Stijn Tintel. Possibly related to #7314
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23092 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-09-19 15:13:06 +00:00
jow
8eea743a53
[package] base-files: r22444 caused interfaces to remain down if the macaddr option is used, fix it. Also localize the txqueuelen option variable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22467 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-02 20:45:52 +00:00
florian
f2ce924259
[package] add txqueuelen option, patch from Roberto Riggio
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22444 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-31 22:32:28 +00:00
jow
f26814c7cb
[package] base-files: introduce option "broadcast" for proto=dhcp interface to enable the broadcast flag in DHCP requests, required by certain providers
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21661 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-02 20:21:41 +00:00
jow
403a2f7489
[package] base-files: remove IPv6 LL addr from interfaces before adding them to a bridge
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21659 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-02 17:18:38 +00:00
jow
796dcb6b2e
[package] base-files:
...
- add aliases to device by default (not ifname)
- introduce option "layer" to select the target ifname to attach the alias to:
- 3 use tun device (tun over bridge over device) fallback to bridge or device
- 2 use bridge (bridge over device) fallback to device
- 1 use device
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21655 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-02 00:22:13 +00:00
jow
85773b84be
[package] base-file: move alias setup to route hotplug, this fixes alias sections for non-static interfaces like ppp, dhcp, 6in4 etc.
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21652 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-01 21:43:52 +00:00
jow
9c250a1ea9
[package] base-files:
...
- use add_dns() and remove_dns() for when changing resolv.conf.auto for static or dhcp interfaces
- force 0644 permissions when creating resolv.conf.auto, fixes dnsmasq permissions denied problem with pppd interfaces
- revert dns servers in /sbin/ifdown
- bump package revision
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21638 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-30 18:23:43 +00:00
jow
cee93be017
[package] base-files: revert r21595
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-28 10:52:02 +00:00
jow
976f789aba
[package] base-files: bring bridge port iface down before changing the mac ( #7111 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21595 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-28 00:59:19 +00:00
nbd
347c600521
when changing the mac address of a bridge interface, keep member interface addresses in sync (patch from #7111 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21577 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-27 14:04:28 +00:00
jow
7f0eb037a2
[package] base-files: add add_dns() and remove_dns() helpers to network config, useful to merge dns entries from multiple interfaces
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-07 01:17:47 +00:00
jow
19b6acd090
[package] base-files, ppp: fix interface shutdown
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21386 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-06 01:14:24 +00:00
jow
d9494637a8
[package] base-files, ppp: remove protocol specific cleanup code from /sbin/ifdown and move it to protocol stop callbacks
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21383 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-05-05 23:24:11 +00:00
nbd
176d390d98
fix error output of brctl if bridging is not supported.
...
The following error is displayed during network configuration on any device that has DEVICE_TYPE set to something else then router, or has brctl functionality disabled through some other method:
"brctl: SIOCGIFBR: Package not installed"
This is due to the unbridge function being called, which uses "brctl show" to determine if the interface is bridged.
Signed-off-by: Ithamar R. Adema <ithamar.adema@team-embedded.nl>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20218 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-14 21:10:07 +00:00
jow
ef34750d84
[package] base-files: revert dhcp state information on ifdown and restore pre-r19530 behaviour in udhcp default.script
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19597 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-12 02:06:57 +00:00
jow
766d5faedc
[package] base-file: revert unrelated change accidentally committed in r19478
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19488 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-01 02:00:57 +00:00
jow
8a51d0046e
[package] base-files: preinit: get rid of /dev/null redirections and use grep -q where applicable
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19478 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-02-01 00:32:46 +00:00
jow
3a3c05eb90
[package] base-files: ensure that the ip6addr of the main interface stays the primary ip by re-adding it after alias setup is completed - patch by Alina Friedrichsen
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19303 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-01-23 22:56:07 +00:00
hcg
eca3f8f215
Add udhcpc command-line argument to request rootpath
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18876 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-12-21 10:25:15 +00:00
jow
9fbe9e1ad0
[package] base-files: clear ip addresses on interfaces that are about to be added to a bridge
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17596 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-16 14:21:19 +00:00
nbd
7f2d4d8bb1
Revert "fix nonhotpluggable networks not being brought up. Closes #2781 " (r17527) until we've solved the race conditions it creates
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17544 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-09 00:16:55 +00:00
thepeople
943fc97fb0
fix nonhotpluggable networks not being brought up. Closes #2781
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17527 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-09-06 17:02:14 +00:00
jow
11a916c4df
[package] base-files: move ipv6 module loading from setup_interface() to addif() in the hotplug call, this ensures that ipv6 is loaded before any interfaces or aliases with ip6addr option are configured ( #5356 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-10 23:48:10 +00:00
nbd
282aff2625
base-files: some /lib/network/config.sh refactoring
...
* Localize a lot more variables than before.
* Do stuff or localize variables at later points or inner blocks
so less commands are executed in some cases.
* Use the default option of config_get where it makes sense.
Signed-off-by: Malte S. Stretz <mss@apache.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17160 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-07 00:08:06 +00:00
jow
ef1435675c
[package] base-files: ensure that ipv6 is loaded if interfaces have an ip6addr defined, clean trailing whitespace, bump pkg revision ( #5356 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17118 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-04 00:06:47 +00:00
nbd
5d422a4b0e
network: prevent unnecessary interface down/up cycles if no mac address change is requested
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16269 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 18:09:05 +00:00
nbd
ce35aafec5
network: do not unnecessarily touch interfaces configured as proto=none; bring down old aliases before setting up new ones
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16266 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 18:07:44 +00:00
nbd
cec137000a
do not run hotplug event for aliases
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15224 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-04-13 00:43:23 +00:00
jow
bc175c58b0
[package]
...
- fix mac assignment for broadcom vifs in bridging mode - thanks abramoff1 for spotting this
- fix possible regression with different interface protocols
- bump PKG_RELEASE
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-25 19:13:15 +00:00
jow
6d85891fde
[package] sync macs with vif bssids in broadcom.sh, fixes multi-ssid with wpa
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15028 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-03-24 23:42:09 +00:00
jow
b80bf0c001
Prevent "SIOCSIFHWADDR: Device or resource busy" when trying to change mac address
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13258 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-17 10:47:02 +00:00
nico
445c5eeabd
make network config script work with brctl from both bridge-utils & busybox
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13165 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-09 22:48:56 +00:00
nbd
3f95a4242b
don't bring down interfaces when preparing them
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-10-29 17:26:59 +00:00
blogic
8a1e72be0a
fixes variables, oops
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12344 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 11:45:23 +00:00
blogic
6279cc1ca5
adds the option to have no proto for a interface, usefull if the uci states need to be set, but interface bring up is handled somewhere else
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12343 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-20 11:17:40 +00:00
nbd
9fb77da451
add basic interface alias support.
...
for now (since we don't use ip in our network scripts yet), it adds :1, :2, ... alias interfaces
this will change when we add support for the ip utility, but the config format will remain the same.
example:
config alias test
option interface lan
option ipaddr 192.168.1.1
option netmask 255.255.0.0
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12241 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-07 15:28:48 +00:00
nbd
1f75fe411e
avoid duplicate vlan add events
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12057 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-08-01 03:01:25 +00:00
nbd
81de0abd55
link default routes added by the network scripts to the appropriate interface ( #2621 )
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12027 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 22:49:25 +00:00
nbd
0448c53b0d
properly keep track of bridged interfaces in the network state
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12004 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-30 05:22:02 +00:00
nbd
c8c1a02da5
fix use of uci_set_state in network scripts (thx, netprince)
...
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10763 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-04-07 16:02:50 +00:00