Advertisement
lucianpb

Untitled

Feb 5th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 KB | None | 0 0
  1. [root@freebsd-13_1 ~]# cat /tmp/some.log
  2. + ARP=/usr/sbin/arp
  3. + HOSTNAME=/bin/hostname
  4. + IFCONFIG='/sbin/ifconfig -n'
  5. + LOCALHOST=127.0.0.1
  6. + [ -x /usr/bin/logger ]
  7. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  8. + [ -f /etc/dhclient-enter-hooks ]
  9. + : YES
  10. + delete_old_alias
  11. + [ -n '' ]
  12. + /sbin/ifconfig -n em1 inet alias 0.0.0.0 netmask 255.0.0.0 broadcast 255.255.255.255 up
  13. + exit_with_hooks 0
  14. + exit_status=0
  15. + [ -f /etc/dhclient-exit-hooks ]
  16. + . /etc/dhclient-exit-hooks
  17. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  18. + echo '=========='
  19. + printenv
  20. + [ em1 '=' em0 ]
  21. + exit 0
  22. + ARP=/usr/sbin/arp
  23. + HOSTNAME=/bin/hostname
  24. + IFCONFIG='/sbin/ifconfig -n'
  25. + LOCALHOST=127.0.0.1
  26. + [ -x /usr/bin/logger ]
  27. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  28. + [ -f /etc/dhclient-enter-hooks ]
  29. + : YES
  30. + exit_with_hooks 0
  31. + exit_status=0
  32. + [ -f /etc/dhclient-exit-hooks ]
  33. + . /etc/dhclient-exit-hooks
  34. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  35. + echo '=========='
  36. + printenv
  37. + [ em1 '=' em0 ]
  38. + exit 0
  39. + ARP=/usr/sbin/arp
  40. + HOSTNAME=/bin/hostname
  41. + IFCONFIG='/sbin/ifconfig -n'
  42. + LOCALHOST=127.0.0.1
  43. + [ -x /usr/bin/logger ]
  44. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  45. + [ -f /etc/dhclient-enter-hooks ]
  46. + : YES
  47. + exit_with_hooks 0
  48. + exit_status=0
  49. + [ -f /etc/dhclient-exit-hooks ]
  50. + . /etc/dhclient-exit-hooks
  51. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  52. + echo '=========='
  53. + printenv
  54. + [ em1 '=' em0 ]
  55. + exit 0
  56. + ARP=/usr/sbin/arp
  57. + HOSTNAME=/bin/hostname
  58. + IFCONFIG='/sbin/ifconfig -n'
  59. + LOCALHOST=127.0.0.1
  60. + [ -x /usr/bin/logger ]
  61. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  62. + [ -f /etc/dhclient-enter-hooks ]
  63. + : YES
  64. + check_hostname
  65. + /bin/hostname
  66. + current_hostname=freebsd-13_1
  67. + [ -z freebsd-13_1 ]
  68. + [ freebsd-13_1 '=' '' -a fbsd13 '!=' '' ]
  69. + [ -n '' ]
  70. + [ BOUND '=' BOUND ]
  71. + add_new_address
  72. + 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'
  73. + /sbin/ifconfig -n em1 inet 10.13.13.88 netmask 255.255.255.0 broadcast 10.13.13.255
  74. + /usr/bin/logger -s -p user.notice -t dhclient 'New IP Address (em1): 10.13.13.88'
  75. dhclient 313 - - New IP Address (em1): 10.13.13.88
  76. + /usr/bin/logger -s -p user.notice -t dhclient 'New Subnet Mask (em1): 255.255.255.0'
  77. dhclient 317 - - New Subnet Mask (em1): 255.255.255.0
  78. + /usr/bin/logger -s -p user.notice -t dhclient 'New Broadcast Address (em1): 10.13.13.255'
  79. dhclient 321 - - New Broadcast Address (em1): 10.13.13.255
  80. + /usr/bin/logger -s -p user.notice -t dhclient 'New Routers (em1): '
  81. dhclient 325 - - New Routers (em1):
  82. + add_new_routes
  83. + [ -n '' ]
  84. + [ -n '' ]
  85. + [ 10.13.13.88 '!=' '' ]
  86. + add_new_alias
  87. + [ -n '' ]
  88. + is_default_interface
  89. + route -n get -inet default
  90. route: route has not been found
  91. + routeget=''
  92. + oldifs=$' \t
  93. '
  94. + IFS='
  95. '
  96. + defif=''
  97. + IFS=$' \t
  98. '
  99. + [ -z '' -o '' '=' em1 ]
  100. + return 0
  101. + add_new_resolv_conf
  102. + local 'tmpres=/var/run/resolv.conf.em1'
  103. + rm -f /var/run/resolv.conf.em1
  104. + [ -n '' ]
  105. + [ -n '' ]
  106. + [ -n '' ]
  107. + [ -f /var/run/resolv.conf.em1 ]
  108. + return 1
  109. + exit_with_hooks 0
  110. + exit_status=0
  111. + [ -f /etc/dhclient-exit-hooks ]
  112. + . /etc/dhclient-exit-hooks
  113. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  114. + echo '=========='
  115. + printenv
  116. + [ em1 '=' em0 ]
  117. + echo em1
  118. + grep -Eo '[0-9]{1,4}'
  119. + ifnumber=1
  120. + setfib 1 route add default 10.13.13.1
  121. + exit 0
  122. + ARP=/usr/sbin/arp
  123. + HOSTNAME=/bin/hostname
  124. + IFCONFIG='/sbin/ifconfig -n'
  125. + LOCALHOST=127.0.0.1
  126. + [ -x /usr/bin/logger ]
  127. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  128. + [ -f /etc/dhclient-enter-hooks ]
  129. + : YES
  130. + delete_old_alias
  131. + [ -n '' ]
  132. + /sbin/ifconfig -n em0 inet alias 0.0.0.0 netmask 255.0.0.0 broadcast 255.255.255.255 up
  133. + exit_with_hooks 0
  134. + exit_status=0
  135. + [ -f /etc/dhclient-exit-hooks ]
  136. + . /etc/dhclient-exit-hooks
  137. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  138. + echo '=========='
  139. + printenv
  140. + [ em0 '=' em0 ]
  141. + echo 'The interface is em0, skipping'
  142. + exit 0
  143. + ARP=/usr/sbin/arp
  144. + HOSTNAME=/bin/hostname
  145. + IFCONFIG='/sbin/ifconfig -n'
  146. + LOCALHOST=127.0.0.1
  147. + [ -x /usr/bin/logger ]
  148. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  149. + [ -f /etc/dhclient-enter-hooks ]
  150. + : YES
  151. + exit_with_hooks 0
  152. + exit_status=0
  153. + [ -f /etc/dhclient-exit-hooks ]
  154. + . /etc/dhclient-exit-hooks
  155. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  156. + echo '=========='
  157. + printenv
  158. + [ em0 '=' em0 ]
  159. + echo 'The interface is em0, skipping'
  160. + exit 0
  161. + ARP=/usr/sbin/arp
  162. + HOSTNAME=/bin/hostname
  163. + IFCONFIG='/sbin/ifconfig -n'
  164. + LOCALHOST=127.0.0.1
  165. + [ -x /usr/bin/logger ]
  166. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  167. + [ -f /etc/dhclient-enter-hooks ]
  168. + : YES
  169. + exit_with_hooks 0
  170. + exit_status=0
  171. + [ -f /etc/dhclient-exit-hooks ]
  172. + . /etc/dhclient-exit-hooks
  173. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  174. + echo '=========='
  175. + printenv
  176. + [ em0 '=' em0 ]
  177. + echo 'The interface is em0, skipping'
  178. + exit 0
  179. + ARP=/usr/sbin/arp
  180. + HOSTNAME=/bin/hostname
  181. + IFCONFIG='/sbin/ifconfig -n'
  182. + LOCALHOST=127.0.0.1
  183. + [ -x /usr/bin/logger ]
  184. + LOGGER='/usr/bin/logger -s -p user.notice -t dhclient'
  185. + [ -f /etc/dhclient-enter-hooks ]
  186. + : YES
  187. + check_hostname
  188. + /bin/hostname
  189. + current_hostname=freebsd-13_1
  190. + [ -z freebsd-13_1 ]
  191. + [ freebsd-13_1 '=' '' -a fbsd13 '!=' '' ]
  192. + [ -n '' ]
  193. + [ BOUND '=' BOUND ]
  194. + add_new_address
  195. + 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'
  196. + /sbin/ifconfig -n em0 inet 10.2.1.70 netmask 255.255.255.0 broadcast 10.2.1.255
  197. + /usr/bin/logger -s -p user.notice -t dhclient 'New IP Address (em0): 10.2.1.70'
  198. dhclient 498 - - New IP Address (em0): 10.2.1.70
  199. + /usr/bin/logger -s -p user.notice -t dhclient 'New Subnet Mask (em0): 255.255.255.0'
  200. dhclient 502 - - New Subnet Mask (em0): 255.255.255.0
  201. + /usr/bin/logger -s -p user.notice -t dhclient 'New Broadcast Address (em0): 10.2.1.255'
  202. dhclient 506 - - New Broadcast Address (em0): 10.2.1.255
  203. + /usr/bin/logger -s -p user.notice -t dhclient 'New Routers (em0): 10.2.1.1'
  204. dhclient 510 - - New Routers (em0): 10.2.1.1
  205. + add_new_routes
  206. + [ -n '' ]
  207. + is_default_interface
  208. + route -n get -inet default
  209. route: route has not been found
  210. + routeget=''
  211. + oldifs=$' \t
  212. '
  213. + IFS='
  214. '
  215. + defif=''
  216. + IFS=$' \t
  217. '
  218. + [ -z '' -o '' '=' em0 ]
  219. + return 0
  220. + [ 10.2.1.70 '=' 10.2.1.1 ]
  221. + route add default 10.2.1.1
  222. + break
  223. + [ -n '' ]
  224. + [ 10.2.1.70 '!=' '' ]
  225. + add_new_alias
  226. + [ -n '' ]
  227. + is_default_interface
  228. + route -n get -inet default
  229. + routeget=' route to: 0.0.0.0
  230. destination: 0.0.0.0
  231. mask: 0.0.0.0
  232. gateway: 10.2.1.1
  233. fib: 0
  234. interface: em0
  235. flags: <UP,GATEWAY,DONE,STATIC>
  236. recvpipe sendpipe ssthresh rtt,msec mtu weight expire
  237. 0 0 0 0 1500 1 0 '
  238. + oldifs=$' \t
  239. '
  240. + IFS='
  241. '
  242. + defif=''
  243. + defif=em0
  244. + IFS=$' \t
  245. '
  246. + [ -z em0 -o em0 '=' em0 ]
  247. + return 0
  248. + add_new_resolv_conf
  249. + local 'tmpres=/var/run/resolv.conf.em0'
  250. + rm -f /var/run/resolv.conf.em0
  251. + [ -n '' ]
  252. + [ -n host.tld ]
  253. + echo 'search host.tld'
  254. + [ -n '10.2.1.1 10.1.1.4 8.8.8.8' ]
  255. + echo 'nameserver 10.2.1.1'
  256. + echo 'nameserver 10.1.1.4'
  257. + echo 'nameserver 8.8.8.8'
  258. + [ -f /var/run/resolv.conf.em0 ]
  259. + [ -f /etc/resolv.conf.tail ]
  260. + /sbin/resolvconf -a em0
  261. + rm -f /var/run/resolv.conf.em0
  262. + return 0
  263. + exit_with_hooks 0
  264. + exit_status=0
  265. + [ -f /etc/dhclient-exit-hooks ]
  266. + . /etc/dhclient-exit-hooks
  267. + export 'PATH=/usr/bin:/usr/sbin:/bin:/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin'
  268. + echo '=========='
  269. + printenv
  270. + [ em0 '=' em0 ]
  271. + echo 'The interface is em0, skipping'
  272. + exit 0
  273. [root@freebsd-13_1 ~]#
  274.  
  275.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement