0

I'm trying to set a Static IP for my Raspberry Pi 3 Model B+ and I have been referring to the following documentation:

https://www.raspberrypi.org/learning/networking-lessons/rpi-static-ip-address/

I want to have a static IP for my Pi when I connect it via a WiFi or a LAN cable. I basically want both the options to have the same Static IP. What I do not understand is the following:

In my /etc/dhcpcd.conf, I see some IPV6 configurations like this:

#interface eth0
#static ip_address=192.168.0.10/24
#static ip6_address=bc62:31d6:abzu:b92a::ee/53
#static routers=192.168.0.1
#static domain_name_servers=192.168.0.1 8.8.8.8 bc62:31d6:abzu:b92a::1

Can I completely remove the ip6_address? In the documentation link that I posted above, there is something related to wlan0 - Is this the setting related to WiFi?

joesan
  • 217
  • 2
  • 3
  • 10

1 Answers1

1

If you really MUST How to set up Static IP Address shows how to do it.

You CAN NOT set 2 interfaces to have the same address. Again if you REALLY want to use the same static IP address for interfaces if only 1 is connected you can use a fallback See How to set up networking/WiFi but this is not a great idea - you would NEED to stop WiFi from connecting.

I feel obliged to point out that there is no NEED to set static IP addresses - I haven't done this since 1980, unless configuring a DHCP server. I don't know what the IP of my 7 Pi or 3 Macs or other devices are, and don't care - I access them by name, and make the routers do their job!

You can remove ip6 if you aren't using them - there is even less need for static ip6 addresses

Milliways
  • 62,573
  • 32
  • 113
  • 225