# Eth address 192.168.0.1

**URL:** https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962
**Category:** mangOH Green
**Created:** [October 4, 2019, 7:25am UTC](https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962 "2019-10-04T07:25:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Miroslaw](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Miroslaw](https://mangoh.discourse.group/u/Miroslaw)
#### Post date: [October 4, 2019, 7:25am UTC](https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962/1 "2019-10-04T07:25:41Z")

</div>

Hi - I wanted to use mangoh green with the plain ETH only (for a moment).  
My local network is 192.168.0.0/24, with router at 192.168.0.1.

I set up the ETH to static address 192.168.0.50. I set it frist  
I can ssh to it. I can ping it from outside and I can ping computers on my network from inside.  
iptables are empty - all policies set to ACCEPT.

HOWEVER: I can’t ping the router (192.168.0.1) from the box!  
And without router/gateway I can’t connect to the Internet.

I even did experiment setting ETH from DHCP (which is offered by the router. And the box GOT the address, settings, but still was not able to ping the router or get outside.

I’m a bit puzzled by this. Is there anything else I could possible check?

Best regards,  
Miroslaw

---

<div class="post-metadata">

### Author: ![TheGod](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/thegod/32/504_2.png) [@TheGod](https://mangoh.discourse.group/u/TheGod)
#### Post date: [October 10, 2019, 9:05pm UTC](https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962/2 "2019-10-10T21:05:19Z")

</div>

Hi Miroslav,  
Did you add ‘gateway’ IP ( gateway - IP of your router ). You will find sample settings below.

iface eth0 inet static  
hwaddress ether 00:00:00:00:00:00  
address 192.168.1.222  
netmask 255.255.255.0  
nameserver 192.168.1.1  
broadcast 192.168.1.255  
**gateway 192.168.1.254**

Regards

Bartek

---

<div class="post-metadata">

### Author: ![Miroslaw](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Miroslaw](https://mangoh.discourse.group/u/Miroslaw)
#### Post date: [October 11, 2019, 6:12am UTC](https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962/3 "2019-10-11T06:12:58Z")

</div>

Hi Bartek,

of course I added it. Look at this shell session:

```
root@swi-mdm9x28-wp:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 46:53:F2:C7:41:2E  
              inet addr:192.168.0.50 Bcast:192.168.0.255 Mask:255.255.255.0
              UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
              RX packets:185 errors:0 dropped:0 overruns:0 frame:0
              TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
....
root@swi-mdm9x28-wp:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ecm0
192.168.225.0 0.0.0.0 255.255.255.0 U 0 0 0 bridge0

root@swi-mdm9x28-wp:~# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination         

Chain FORWARD (policy ACCEPT)
target prot opt source destination         

Chain OUTPUT (policy ACCEPT)
target prot opt source destination     

```

And I’m connected (ssh) via eth. ipv6 is **disabled**.

I can ping 192.168.0.11 - another device on the network. I can obviously ping my laptop (77).  
But I can’t ping 192.168.0.1 - the router. Moreover. It has port 80 open (administration) and this happen when I try to connect:

```
root@swi-mdm9x28-wp:~# telnet 192.168.0.1 80
telnet: can't connect to remote host (192.168.0.1): Protocol error

```

There is no connection to this particular IP because of some weird reasons. That is why it is so puzzling.

Any ideas?

Best regards,  
Miroslaw

---

<div class="post-metadata">

### Author: ![hshs](https://avatars.discourse-cdn.com/v4/letter/h/d78d45/32.png) [@hshs](https://mangoh.discourse.group/u/hshs)
#### Post date: [June 12, 2021, 11:54pm UTC](https://mangoh.discourse.group/t/eth-address-192-168-0-1/2962/4 "2021-06-12T23:54:16Z")

</div>

**Make sure that default gateway of your router is [192.168.0.1](https://routerhax.com/192.168.0.1/) otherwise it wont work !**
