0

I configured "/etc/network/interfaces" config file as such :

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

and configured dhcpcd.conf by adding these lines at the end of file:

# Custom static IP address for eth0.
interface eth0
static ip_address=192.168.1.115/24
static routers=192.168.1.1

# Custom static IP address for wlan0.
interface wlan0
static ip_address=192.168.1.114/24
static routers=192.168.1.1

With these configurations , I see my ethernet and wifi interfaces get specified ips successfully. Wireless connection is done also. But when i open web browser and try to reach a webpage, It just doesnt happen.

Şansal Birbaş
  • 119
  • 1
  • 4

3 Answers3

2

Wireless routers may not accept clients with self-assigned static IPs. When a new client logs in to the router, they get assigned a dynamic IP address which they are supposed to request via DHCP. If they don't, and instead pick a random IP address (as 192.168.1.114 in your case), the router will simply drop its packets.

This can be changed by configuring static IPs on the router: you have to tell it that a client with a particular MAC address will be using a particular IP address. With some routers, the client still have to use DHCP (even if the IP address they will get is always the same) to be able to communicate with the router.

The procedure to configure static IP is router specific. It can easily be found by googling "static IP address" plus the router name.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
0

A couple potential issues:

  1. As @Milliways mentioned, it appears that the same IP Address (192.168.1.115) is being assigned to both network interfaces
  2. Additionally, the domain name server listed is the same as the gateway (192.168.1.1). This is fine as long as that device actually does DNS or forwards it on to an external DNS.

If it's a DNS issue, you should still be able to ping an external IP (try the 8.8.8.8 Google DNS address) once you eliminate the duplicate IPs.

For troubleshooting purposes, I'd recommend focusing on getting just one of the interfaces working and go from there.

thephez
  • 310
  • 1
  • 8
0

This sounds like you don't have assigned DNS server addresses in your static (or fallback) dhcpcd.conf. As your configuration currently is, you only set up a correct IP/netmask and default gateway. This allows for IPv4 connectivity. But most browsers honor the system-assigned DNS service/server addresses, without any fallback. So in your case you don't have told your RPi which DNS server to use. For a quick check, try dig raspberrypi.org, which should give you an error, but also tell you which DNS server it wants to use. For cross-checking, check your /etc/resolv.conf which should lack any DNS server address assignments.

TheDiveO
  • 1,591
  • 1
  • 11
  • 16