Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifconfig
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last Login: Fri Nov 10 17:50:12 2017
- guy@rpi5:~ $ ifconfig
- eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.2.126 netmask 255.255.255.0 broadcast 192.168.2.255
- inet6 fe80::1004:51ed:dd4a:afb1 prefixlen 64 scopeid 0x20<link>
- ether 00:e0:4c:53:44:58 txqueuelen 1000 (Ethernet)
- RX packets 238 bytes 21795 (21.2) KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 98 bytes 12524 (12.2) KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
- inet 127.0.0.1 netmask 255.0.0.0
- inet6 ::1 prefixlen 128 scopeid 0x10<host
- loop txqueuelen 1 (Local Loopback)
- RX packets 8 bytes 312 (312.0) B)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 8 bytes 312 (312.00) B)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- rename3: 4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
- inet 192.168.2.131 netmask 255.255.255.0 broadcast 192.168.2.255
- inet6 fe80::63b7:510d:eac5:2e04 prefixlen 64 scopeid 0x20<link>
- inet6 fe80::8826:3fd9:48c5:8ab5 prefixlen 64 scopeid 0x20<link>
- ether 8c:b8:2b:00:52:12 txqueuelen 1000 (Ethernet)
- RX packets 414 bytes 56976 (55.6) KiB)
- RX errors 0 dropped 0 overruns 0 frame 0
- TX packets 74 bytes 10758 (10.5) KiB)
- TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
- guy@rpi5:~ $ sudo systemctl status dhcpcd
- u25cf dhcpcd.service - dhcpcd on all interfaces
- Loaded: loaded (/lib/systemd/system/dhcpcd.service; enabled; vendor preset: e
- Drop-In: /etc/systemd/system/dhcpcd.service.d
- u2514u2500wait.conf
- Active: active (running) since Fri 2017-11-10 17:50:00 IST; 2 days ago
- Process: 242 ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w (code=exited, status=0/SU
- Main PID: 508 (dhcpcd)
- CGroup: /system.slice/dhcpcd.service
- u2514u2500508 /sbin/dhcpcd -q -w
- Nov 10 17:59:55 rpi5 dhcpcd[508]: rename3: deleting address fe80::63b7:510d:eac5
- Nov 10 17:59:55 rpi5 dhcpcd[508]: rename3: carrier acquired
- Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: IAID 2b:00:52:12
- Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: adding address fe80::63b7:510d:eac5:2
- Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: probing address 192.168.2.117/24
- Nov 10 17:59:56 rpi5 dhcpcd[508]: rename3: soliciting an IPv6 router
- Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: using static address 192.168.2.117/24
- Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: adding route to 192.168.2.0/24
- Nov 10 18:00:01 rpi5 dhcpcd[508]: rename3: adding default route via 192.168.2.1
- Nov 10 18:00:09 rpi5 dhcpcd[508]: rename3: no IPv6 Routers available
- guy@rpi5:~ $ cat /etc/dhcpcd.conf
- # A sample configuration for dhcpcd.
- # See dhcpcd.conf(5) for details.
- # Allow users of this group to interact with dhcpcd via the control socket.
- #controlgroup wheel
- # Inform the DHCP server of our hostname for DDNS.
- hostname
- # Use the hardware address of the interface for the Client ID.
- clientid
- # or
- # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
- # Some non-RFC compliant DHCP servers do not reply with this set.
- # In this case, comment out duid and enable clientid above.
- #duid
- # Persist interface configuration when dhcpcd exits.
- persistent
- # Rapid commit support.
- # Safe to enable by default because it requires the equivalent option set
- # on the server to actually work.
- option rapid_commit
- # A list of options to request from the DHCP server.
- option domain_name_servers, domain_name, domain_search, host_name
- option classless_static_routes
- # Most distributions have NTP support.
- option ntp_servers
- # Respect the network MTU. This is applied to DHCP routes.
- option interface_mtu
- # A ServerID is required by RFC2131.
- require dhcp_server_identifier
- # Generate Stable Private IPv6 Addresses instead of hardware based ones
- slaac private
- # Example static IP configuration:
- interface eth0
- static ip_address=192.168.2.115/24
- #static ip6_address=fd51:42f8:caae:d92e::ff/64
- static routers=192.168.2.1
- static domain_name_servers=192.168.2.1 #8.8.8.8 fd51:42f8:caae:d92e::1
- interface rename3
- static ip_address=192.168.2.117/24
- static routers=192.168.2.1
- # It is possible to fall back to a static IP if DHCP fails:
- # define static profile
- #profile static_eth0
- #static ip_address=192.168.1.23/24
- #static routers=192.168.1.1
- #static domain_name_servers=192.168.1.1
- # fallback to static profile on eth0
- #interface eth0
- #fallback static_eth0
Add Comment
Please, Sign In to add comment