Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@freebsd-13_1 ~]# cat /tmp/some.log
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + delete_old_alias
- + [ -n '' ]
- + /sbin/ifconfig -n em1 inet alias 0.0.0.0 netmask 255.0.0.0 broadcast 255.255.255.255 up
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em1 '=' em0 ]
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em1 '=' em0 ]
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em1 '=' em0 ]
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + check_hostname
- + /bin/hostname
- + current_hostname=freebsd-13_1
- + [ -z freebsd-13_1 ]
- + [ freebsd-13_1 '=' '' -a fbsd13 '!=' '' ]
- + [ -n '' ]
- + [ BOUND '=' BOUND ]
- + add_new_address
- + eval $'/sbin/ifconfig -n em1 \t\tinet 10.13.13.88 \t\tnetmask 255.255.255.0 \t\tbroadcast 10.13.13.255 \t\t'
- + /sbin/ifconfig -n em1 inet 10.13.13.88 netmask 255.255.255.0 broadcast 10.13.13.255
- + /usr/bin/logger -s -p user.notice -t dhclient 'New IP Address (em1): 10.13.13.88'
- dhclient 313 - - New IP Address (em1): 10.13.13.88
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Subnet Mask (em1): 255.255.255.0'
- dhclient 317 - - New Subnet Mask (em1): 255.255.255.0
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Broadcast Address (em1): 10.13.13.255'
- dhclient 321 - - New Broadcast Address (em1): 10.13.13.255
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Routers (em1): '
- dhclient 325 - - New Routers (em1):
- + add_new_routes
- + [ -n '' ]
- + [ -n '' ]
- + [ 10.13.13.88 '!=' '' ]
- + add_new_alias
- + [ -n '' ]
- + is_default_interface
- + route -n get -inet default
- route: route has not been found
- + routeget=''
- + oldifs=$' \t
- '
- + IFS='
- '
- + defif=''
- + IFS=$' \t
- '
- + [ -z '' -o '' '=' em1 ]
- + return 0
- + add_new_resolv_conf
- + local 'tmpres=/var/run/resolv.conf.em1'
- + rm -f /var/run/resolv.conf.em1
- + [ -n '' ]
- + [ -n '' ]
- + [ -n '' ]
- + [ -f /var/run/resolv.conf.em1 ]
- + return 1
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em1 '=' em0 ]
- + echo em1
- + grep -Eo '[0-9]{1,4}'
- + ifnumber=1
- + setfib 1 route add default 10.13.13.1
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + delete_old_alias
- + [ -n '' ]
- + /sbin/ifconfig -n em0 inet alias 0.0.0.0 netmask 255.0.0.0 broadcast 255.255.255.255 up
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em0 '=' em0 ]
- + echo 'The interface is em0, skipping'
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em0 '=' em0 ]
- + echo 'The interface is em0, skipping'
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em0 '=' em0 ]
- + echo 'The interface is em0, skipping'
- + exit 0
- + ARP=/usr/sbin/arp
- + HOSTNAME=/bin/hostname
- + IFCONFIG='/sbin/ifconfig -n'
- + LOCALHOST=127.0.0.1
- + [ -x /usr/bin/logger ]
- + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
- + [ -f /etc/dhclient-enter-hooks ]
- + : YES
- + check_hostname
- + /bin/hostname
- + current_hostname=freebsd-13_1
- + [ -z freebsd-13_1 ]
- + [ freebsd-13_1 '=' '' -a fbsd13 '!=' '' ]
- + [ -n '' ]
- + [ BOUND '=' BOUND ]
- + add_new_address
- + eval $'/sbin/ifconfig -n em0 \t\tinet 10.2.1.70 \t\tnetmask 255.255.255.0 \t\tbroadcast 10.2.1.255 \t\t'
- + /sbin/ifconfig -n em0 inet 10.2.1.70 netmask 255.255.255.0 broadcast 10.2.1.255
- + /usr/bin/logger -s -p user.notice -t dhclient 'New IP Address (em0): 10.2.1.70'
- dhclient 498 - - New IP Address (em0): 10.2.1.70
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Subnet Mask (em0): 255.255.255.0'
- dhclient 502 - - New Subnet Mask (em0): 255.255.255.0
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Broadcast Address (em0): 10.2.1.255'
- dhclient 506 - - New Broadcast Address (em0): 10.2.1.255
- + /usr/bin/logger -s -p user.notice -t dhclient 'New Routers (em0): 10.2.1.1'
- dhclient 510 - - New Routers (em0): 10.2.1.1
- + add_new_routes
- + [ -n '' ]
- + is_default_interface
- + route -n get -inet default
- route: route has not been found
- + routeget=''
- + oldifs=$' \t
- '
- + IFS='
- '
- + defif=''
- + IFS=$' \t
- '
- + [ -z '' -o '' '=' em0 ]
- + return 0
- + [ 10.2.1.70 '=' 10.2.1.1 ]
- + route add default 10.2.1.1
- + break
- + [ -n '' ]
- + [ 10.2.1.70 '!=' '' ]
- + add_new_alias
- + [ -n '' ]
- + is_default_interface
- + route -n get -inet default
- + routeget=' route to: 0.0.0.0
- destination: 0.0.0.0
- mask: 0.0.0.0
- gateway: 10.2.1.1
- fib: 0
- interface: em0
- flags: <UP,GATEWAY,DONE,STATIC>
- recvpipe sendpipe ssthresh rtt,msec mtu weight expire
- 0 0 0 0 1500 1 0 '
- + oldifs=$' \t
- '
- + IFS='
- '
- + defif=''
- + defif=em0
- + IFS=$' \t
- '
- + [ -z em0 -o em0 '=' em0 ]
- + return 0
- + add_new_resolv_conf
- + local 'tmpres=/var/run/resolv.conf.em0'
- + rm -f /var/run/resolv.conf.em0
- + [ -n '' ]
- + [ -n host.tld ]
- + echo 'search host.tld'
- + [ -n '10.2.1.1 10.1.1.4 8.8.8.8' ]
- + echo 'nameserver 10.2.1.1'
- + echo 'nameserver 10.1.1.4'
- + echo 'nameserver 8.8.8.8'
- + [ -f /var/run/resolv.conf.em0 ]
- + [ -f /etc/resolv.conf.tail ]
- + /sbin/resolvconf -a em0
- + rm -f /var/run/resolv.conf.em0
- + return 0
- + exit_with_hooks 0
- + exit_status=0
- + [ -f /etc/dhclient-exit-hooks ]
- + . /etc/dhclient-exit-hooks
- + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
- + echo '=========='
- + printenv
- + [ em0 '=' em0 ]
- + echo 'The interface is em0, skipping'
- + exit 0
- [root@freebsd-13_1 ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement