Lukas Nykryn
ea8bef9893
ifup: don't ifup team master indefinitely
...
https://bugzilla.redhat.com/show_bug.cgi?id=1416958
Thanks to martin.moore@hpe.com for the patch
2017-04-06 16:27:01 +02:00
Lukas Nykryn
a603e1f3a6
network/ifup: write override file before dhcp_do
...
Commit cf376023e6
moved writing .resolv.conf and .override
after dhcp_do, because dhcp_do was overwriting .resolv.conf. But .override does not have
such problem and on the contrary dhcp_do reads .override file if it is present. So let\'s
move it back.
https://bugzilla.redhat.com/show_bug.cgi?id=1415004
2017-03-24 10:34:27 +01:00
Lukas Nykryn
443d167a95
network: do not check "firmware boot selected flag"
...
Apparently it is not set correctly on some setups
https://bugzilla.redhat.com/show_bug.cgi?id=1380581
2016-10-05 17:46:36 +02:00
Harald Hoyer
33710dfbfc
network: fix dhcp classless_static_routes
...
removed copy&paste artifact "modify_routes add"
there is no modify_routes() function, and we simply want the output
of the parse function.
2016-09-07 10:20:20 +02:00
Harald Hoyer
c87d489ca6
network/parse-ip-opts: be more liberal to multiple ip= options
...
Do not bail out early.
https://bugzilla.redhat.com/show_bug.cgi?id=1304069
2016-09-07 10:20:20 +02:00
Harald Hoyer
b8e6c051c6
network:ibft put IPv6 IP in brackets
...
ip=2620:0052:0000:2220:0226:b9ff:fe81:cde4::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none
should be
ip=[2620:0052:0000:2220:0226:b9ff:fe81:cde4]::[2620:0052:0000:2220:0000:0000:0000:03fe]:64::ibft0:none
https://bugzilla.redhat.com/show_bug.cgi?id=1322592#c19
2016-08-17 16:26:13 +02:00
Harald Hoyer
7a90c8b343
network: support multiple vlan, team, bridge and bond
2016-07-04 16:28:08 +02:00
Harald Hoyer
13264563a9
network:wait_for_ipv6_auto() wait for all tentative addresses
2016-07-01 12:29:15 +02:00
Harald Hoyer
cc3f588071
network: flush only IPv4 addresses on configuration
...
also flush on dhcp
2016-07-01 12:29:15 +02:00
Harald Hoyer
42dd8928a8
network: differ between ipv6 local and global tentative
...
For dhcpv6, only a non-tentative scope local address is needed.
2016-06-30 11:10:35 +02:00
Harald Hoyer
6d22a6860e
network/net-lib.sh: auto6 wait for route ra
...
Wait for a router advertised route
2016-06-30 08:52:09 +02:00
Hannes Reinecke
bac74f05e3
40network: Update iBFT scanning code to handle IPv6
...
IPv6 addresses should be specified in brackets so that the
ip= scanning code doesn't get confused.
References: bnc#887542
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.com>
(cherry picked from commit c98d1756f7
)
2016-06-29 18:26:58 +02:00
Xunlei Pang
a320422588
network/net-lib.sh: delete duplicated DNS items from "/etc/resolv.conf"
...
Users can pass the DNS information throught "nameserver=" cmdline,
there maybe duplicated inputs.
"/etc/resolv.conf" have some restrictions on the number of DNS items
effective, so make sure that this file contains no duplicated items.
We achieve this by simply making the file have no duplicated lines.
Signed-off-by: Xunlei Pang <xlpang@redhat.com>
(cherry picked from commit 4fa5c235a7
)
2016-06-29 17:27:36 +02:00
Harald Hoyer
5bc318633f
network: dhcp before parsing specified dns through cmdline
...
I met a problem when passing kdump dns to dracut via "nameserver=x.x.x.x",
the dns I provided didn't appear in the "/etc/resolv.conf".
After some debugging, found that when setup dhcp DNS, in setup_interface()
and setup_interface6(), it has:
echo "search $search $domain" > /tmp/net.$netif.resolv.conf
So if "$search $domain" isn't NULL(this is ture in my kdump environment),
the dns contents(that is, dns1, dns2, nameserver) in "ifup" before dhcp
will be discarded.
This patch addresses it by handling dhcp first. In fact this is also the
way the NetworkManager in 1st kernel works.
Signed-off-by: Xunlei Pang <xlpang@redhat.com>
cherry-pick of commit cf376023e6
2016-06-29 17:26:17 +02:00
Harald Hoyer
a7805d1297
network/net-lib.sh(wait_for_ipv6_dad): simplify ip call
...
taken from initscripts
2016-06-29 17:19:06 +02:00
Harald Hoyer
435af39a00
network/net-lib.sh(parse_ifname_opts): support 21 byte MAC addrs
...
infiniband MAC addrs are 20 bytes long not 6
https://bugzilla.redhat.com/show_bug.cgi?id=1319270
2016-06-29 16:37:40 +02:00
Harald Hoyer
61b5ee6d1d
network: set MTU and MACADDR for dhcp and auto6
2016-06-29 15:13:35 +02:00
Harald Hoyer
53e4ab7174
network: support macaddr in brackets []
...
ip=ens3:dhcp:1000
ip=ens3:dhcp::54:52:00:ab💿 ef
ip=ens3:dhcp::[54:52:00🆎 cd:ef]
ip=ens3:dhcp:1000:54:52:00:ab💿 ef
ip=ens3:dhcp:1000:[54:52:00🆎 cd:ef]
ip=192.168.122.20::192.168.122.1:24:test:ens3:none:1000
ip=192.168.122.20::192.168.122.1:24:test:ens3:none::54:52:00:ab💿 ef
ip=192.168.122.20::192.168.122.1:24:test:ens3:none::[54:52:00🆎 cd:ef]
ip=192.168.122.20::192.168.122.1:24:test:ens3:none:1000:54:52:00🆎 cd:ef
ip=192.168.122.20::192.168.122.1:24:test:ens3:none:1000:[54:52:00🆎 cd:ef]
ip=::::test:ens3:dhcp:1000
ip=::::test:ens3:dhcp::54:52:00:ab💿 ef
ip=::::test:ens3:dhcp::[54:52:00🆎 cd:ef]
ip=::::test:ens3:dhcp:1000:54:52:00:ab💿 ef
ip=::::test:ens3:dhcp:1000:[54:52:00🆎 cd:ef]
2016-06-29 12:44:49 +02:00
Harald Hoyer
b7f5e42c57
network/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>
...
if ip=...:<mtu>:<mac> was specified, macadress was not set
(cherry picked from commit efbc47b8e4
)
2016-06-29 12:15:12 +02:00
Mike Gilbert
d6b9aac6d0
Replace echo -n with printf in code with a /bin/sh shebang
...
POSIX does not mandate that echo support the -n parameter.
printf has more well-defined behavior.
(cherry picked from commit 5899f2f516
)
2016-06-29 11:40:14 +02:00
Harald Hoyer
320b8d5c0c
network/dhclient.conf: add missing commata
...
options need to be seperated by ,
(cherry picked from commit 7e51abc81f
)
2016-06-24 11:10:19 +02:00
Harald Hoyer
fefb96f43f
network/parse-bond.sh: handle multiple bond interfaces
2016-06-22 13:32:11 +02:00
Harald Hoyer
1472b5486b
ifup: setup bridge, bonding and teaming only once
...
if those assembled interfaces use dhcp "$iface.up" is created too late
2016-06-10 16:24:24 +02:00
Harald Hoyer
e6ae0c6128
network/net-genrules.sh: generate rules for all interfaces
...
previously, if "rd.neednet" and bond was specified, only the bond
interface was configured.
https://bugzilla.redhat.com/show_bug.cgi?id=1282680
2016-06-10 16:24:24 +02:00
Harald Hoyer
484aba4298
network: add 73-idrac.rules udev rules
...
idrac USB devices want a special network name
2016-06-08 16:19:12 +02:00
Harald Hoyer
0d7b00a230
network: if rd.neednet=0 we don't need a bootdev
...
otherwise dracut would wait for the bootdev interface to appear and be
setup
(cherry picked from commit f4f8fb5c10
)
2016-02-29 15:07:59 +01:00
Harald Hoyer
a48ea27deb
network/dhclient-script.sh: add classless-static-routes support
...
https://bugzilla.redhat.com/show_bug.cgi?id=1260955
2016-02-29 15:00:46 +01:00
Harald Hoyer
17985b2575
network: fix carrier detection
...
rename iface_has_link() to iface_has_carrier() to clarify usage
Only assign static "wildcard interface" settings, if the interface has a
carrier.
If the interface name was specified with a name, do not do carrier
checking for static configurations.
(cherry picked from commit df95b1003c
)
2015-12-14 16:16:00 +01:00
Harald Hoyer
e658251173
network/ifup.sh: skip empty nameserver values
2015-10-09 11:35:43 +02:00
Harald Hoyer
f059985b14
network:wait_for_ifup() handle "NO-CARRIER" output
...
if "NO-CARRIER" is one of the flags, we surely have no link yet.
2015-09-25 12:42:15 -04:00
Harald Hoyer
17cee31b11
network/netroot.sh: better handling of $netroot and dhcp
...
if $netroot is emtpy, get it from cmdline
check cmdline directly for root=dhcp(6) and netroot=dhcp(6)
2015-09-10 13:23:32 +02:00
Harald Hoyer
63e75dc4cd
network: add all_ifaces_setup()
...
all_ifaces_up() is true, if all interfaces are up.
all_ifaces_setup() is true, if all interfaces are up and the gateways
and nameserver are setup.
2015-09-10 13:20:18 +02:00
Harald Hoyer
52845b168d
network/dhclient-script.sh: fix RENEW
...
Remove check, if interface is already up. It is for RENEW.
new_prefix is apparently new_subnet_mask
2015-09-08 11:44:13 +02:00
Harald Hoyer
b334c83e4a
network: move "ip=ibft" handling to network module
2015-09-03 12:41:44 +02:00
Harald Hoyer
7316d68353
network/ifup: do DHCP for BOOTDEV
2015-09-01 19:05:37 +02:00
Harald Hoyer
a4c47ce0dd
network/net-lib.sh: fix IPv6 route parsing
2015-09-01 17:25:34 +02:00
Harald Hoyer
d8572e0bf4
network/net-lib.sh: fix wait_for_if_up()
...
wait for <*UP*> and not "state UP"
state can be UNKNOWN
2015-09-01 17:23:33 +02:00
Harald Hoyer
70f3c07846
network/ifup: fix warning about not bringing interface up
2015-09-01 17:22:37 +02:00
Harald Hoyer
7c24815034
network/ifup.sh: only use dhcp on unknown interfaces for ip=dhcp
2015-08-25 11:37:16 +02:00
Harald Hoyer
53537f4d23
network: also mark interfaces up with their MAC
2015-08-25 11:30:00 +02:00
Harald Hoyer
b4006781e8
network/ifup.sh: save return value of ifup
2015-08-25 11:20:30 +02:00
Harald Hoyer
32770ca79a
network/ifup.sh:do_static(): error out, if IP is already assigned
2015-08-19 14:00:28 +02:00
Harald Hoyer
77f46adf5e
network/ifup.sh:do_static(): error out, if interface could not be brought up
2015-08-19 13:59:40 +02:00
Harald Hoyer
d6bfa7052a
network/dhclient: exit arping immediatly, if we get an answer
2015-08-18 12:41:12 +02:00
Harald Hoyer
942d60d8af
network/net-lib.sh:ibft unset gateway or dns, if set to 0.0.0.0
2015-08-18 12:40:01 +02:00
Harald Hoyer
2eb3b00133
network/parse-ip-opts.sh: bind enx* interface to the MAC
...
do it automatically for the persistent naming scheme
2015-08-18 12:13:55 +02:00
Harald Hoyer
38180271c5
network/ifup.sh: arping for static IPv4 addresses
2015-08-18 12:07:41 +02:00
Harald Hoyer
fb2d643a38
network/ifup.sh: let dhcp client run in the background
...
we need to renew the lease
2015-08-18 11:55:05 +02:00
Harald Hoyer
d544733084
network/net-lib.sh: add is_ip()
...
add function to test if string is a valid IP
(cherry picked from commit 01b23b6900
)
2015-08-13 15:25:24 +02:00
Harald Hoyer
53ecce179b
network/parse-ip-opts.sh: assume rd.neednet for multiple ip options
...
set rd.neednet on the kernel cmdline to disable this behaviour
(cherry picked from commit 4e9ba952bf
)
2015-08-13 15:23:28 +02:00