Guest User

Untitled

a guest
Nov 19th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. #ifconfig
  2. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
  3. permitted by applicable law.
  4. Last Login: Fri Nov 10 17:50:12 2017
  5. guy@rpi5:~ $ ifconfig
  6. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  7. inet 192.168.2.126 netmask 255.255.255.0 broadcast 192.168.2.255
  8. inet6 fe80::1004:51ed:dd4a:afb1 prefixlen 64 scopeid 0x20<link>
  9. ether 00:e0:4c:53:44:58 txqueuelen 1000 (Ethernet)
  10. RX packets 238 bytes 21795 (21.2) KiB)
  11. RX errors 0 dropped 0 overruns 0 frame 0
  12. TX packets 98 bytes 12524 (12.2) KiB)
  13. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  14.  
  15. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  16. inet 127.0.0.1 netmask 255.0.0.0
  17. inet6 ::1 prefixlen 128 scopeid 0x10<host
  18. loop txqueuelen 1 (Local Loopback)
  19. RX packets 8 bytes 312 (312.0) B)
  20. RX errors 0 dropped 0 overruns 0 frame 0
  21. TX packets 8 bytes 312 (312.00) B)
  22. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  23.  
  24. rename3: 4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
  25. inet 192.168.2.131 netmask 255.255.255.0 broadcast 192.168.2.255
  26. inet6 fe80::63b7:510d:eac5:2e04 prefixlen 64 scopeid 0x20<link>
  27. inet6 fe80::8826:3fd9:48c5:8ab5 prefixlen 64 scopeid 0x20<link>
  28. ether 8c:b8:2b:00:52:12 txqueuelen 1000 (Ethernet)
  29. RX packets 414 bytes 56976 (55.6) KiB)
  30. RX errors 0 dropped 0 overruns 0 frame 0
  31. TX packets 74 bytes 10758 (10.5) KiB)
  32. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  33.  
  34. guy@rpi5:~ $ sudo systemctl status dhcpcd
  35. u25cf dhcpcd.service - dhcpcd on all interfaces
  36. Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: e
  37. Drop-In: /etc/systemd/system/dhcpcd.service.d
  38. u2514u2500wait.conf
  39. Active: active (running) since Fri 2017-11-10 17:50:00 IST; 2 days ago
  40. Process: 242 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w (code=exited, status=0/SU
  41. Main PID: 508 (dhcpcd)
  42. CGroup: /system.slice/dhcpcd.service
  43. u2514u2500508 /sbin/dhcpcd -q -w
  44.  
  45. Nov 10 17:59:55 rpi5 dhcpcd[508]: rename3: deleting address fe80::63b7:510d:eac5
  46. Nov 10 17:59:55 rpi5 dhcpcd[508]: rename3: carrier acquired
  47. Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: IAID 2b:00:52:12
  48. Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: adding address fe80::63b7:510d:eac5:2
  49. Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: probing address 192.168.2.117/24
  50. Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: soliciting an IPv6 router
  51. Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: using static address 192.168.2.117/24
  52. Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: adding route to 192.168.2.0/24
  53. Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: adding default route via 192.168.2.1
  54. Nov 10 18:00:09 rpi5 dhcpcd[508]: rename3: no IPv6 Routers available
  55.  
  56. guy@rpi5:~ $ cat /etc/dhcpcd.conf
  57.  
  58. # A sample configuration for dhcpcd.
  59. # See dhcpcd.conf(5) for details.
  60.  
  61. # Allow users of this group to interact with dhcpcd via the control socket.
  62. #controlgroup wheel
  63.  
  64. # Inform the DHCP server of our hostname for DDNS.
  65. hostname
  66.  
  67. # Use the hardware address of the interface for the Client ID.
  68. clientid
  69. # or
  70. # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
  71. # Some non-RFC compliant DHCP servers do not reply with this set.
  72. # In this case, comment out duid and enable clientid above.
  73. #duid
  74.  
  75. # Persist interface configuration when dhcpcd exits.
  76. persistent
  77.  
  78. # Rapid commit support.
  79. # Safe to enable by default because it requires the equivalent option set
  80. # on the server to actually work.
  81. option rapid_commit
  82.  
  83. # A list of options to request from the DHCP server.
  84. option domain_name_servers, domain_name, domain_search, host_name
  85. option classless_static_routes
  86. # Most distributions have NTP support.
  87. option ntp_servers
  88. # Respect the network MTU. This is applied to DHCP routes.
  89. option interface_mtu
  90.  
  91. # A ServerID is required by RFC2131.
  92. require dhcp_server_identifier
  93.  
  94. # Generate Stable Private IPv6 Addresses instead of hardware based ones
  95. slaac private
  96.  
  97. # Example static IP configuration:
  98. interface eth0
  99. static ip_address=192.168.2.115/24
  100. #static ip6_address=fd51:42f8:caae:d92e::ff/64
  101. static routers=192.168.2.1
  102. static domain_name_servers=192.168.2.1 #8.8.8.8 fd51:42f8:caae:d92e::1
  103.  
  104. interface rename3
  105. static ip_address=192.168.2.117/24
  106. static routers=192.168.2.1
  107.  
  108. # It is possible to fall back to a static IP if DHCP fails:
  109. # define static profile
  110.  
  111. #profile static_eth0
  112. #static ip_address=192.168.1.23/24
  113. #static routers=192.168.1.1
  114. #static domain_name_servers=192.168.1.1
  115.  
  116. # fallback to static profile on eth0
  117. #interface eth0
  118. #fallback static_eth0
Add Comment
Please, Sign In to add comment