File: up.16

package info (click to toggle)
ifupdown 0.8.44
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 952 kB
  • sloc: ansic: 2,781; sh: 899; perl: 513; makefile: 90
file content (60 lines) | stat: -rw-r--r-- 2,562 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
exit code: 0
====stdout====
====stderr====
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip link set up dev lo 2>/dev/null

ifup: configuring interface lo=lo (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts --exit-on-error --verbose /etc/network/if-up.d

ifup: configuring interface eth0=eth0 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip addr add 1.2.3.4/255.255.255.0 broadcast 1.2.3.255 	  dev eth0 label eth0
ip link set dev eth0   up

run-parts --exit-on-error --verbose /etc/network/if-up.d

ifup: configuring interface eth1=eth1 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip addr add 1.2.3.4/255.255.255.0 broadcast 1.2.3.255 	  dev eth1 label eth1
ip link set dev eth1 mtu 1500 address 12:34:56:89:0a:bc up

run-parts --exit-on-error --verbose /etc/network/if-up.d
ifup: configuring interface eth1=eth1 (inet6)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.


sysctl -q -e -w net.ipv6.conf.eth1.autoconf=0
if [ "$(cat /sys/class/net/eth1/mtu)" -lt 1492 ]; then ip link set dev eth1 mtu 1492; else sysctl -q -e -w net.ipv6.conf.eth1.mtu=1492; fi
ip link set dev eth1 address 12:34:ff:fe:0a:bc up
ip -6 addr add 3ffe:ffff:120::fffe:1/64  dev eth1 

run-parts --exit-on-error --verbose /etc/network/if-up.d

ifup: configuring interface eth2=eth2 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip addr add 1.2.3.5/255.255.255.0 broadcast 1.2.3.255 	  dev eth2 label eth2
ip link set dev eth2 mtu 1500 address 12:34:56:89:0a:bc up

run-parts --exit-on-error --verbose /etc/network/if-up.d
ifup: configuring interface eth2=eth2 (inet6)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
modprobe -q net-pf-10 > /dev/null 2>&1 || true # ignore failure.


sysctl -q -e -w net.ipv6.conf.eth2.autoconf=0
if [ "$(cat /sys/class/net/eth2/mtu)" -lt 1492 ]; then ip link set dev eth2 mtu 1492; else sysctl -q -e -w net.ipv6.conf.eth2.mtu=1492; fi
ip link set dev eth2 address 12:34:ff:fe:0a:bc up
ip -6 addr add 3ffe:ffff:120::fffe:1/64  dev eth2 

run-parts --exit-on-error --verbose /etc/network/if-up.d

ifup: configuring interface eth3=eth3 (inet)
run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
ip addr add 1.2.3.5/255.255.255.0 broadcast 1.2.3.255 	  dev eth3 label eth3
ip link set dev eth3 mtu 1500 address 12:34:56:89:0a:bc up

run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts --exit-on-error --verbose /etc/network/if-up.d