O
O
onefinal2015-08-24 02:03:29
PHP
onefinal, 2015-08-24 02:03:29

Eth0 eth1 why is the internet disappearing?

interfaces
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 188.21.52.49
netmask 255.255.255.0
gateway 188.21.52.254
dns-nameservers 8.8.8.8 8.8.4.4
auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168 .1.1
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8 8.8.4.4
eth0 looks to the Internet
eth1 to the local network when eth1 is turned on, the debian (raspberry)
Internet immediately disappears

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Loginov, 2019-02-28
@facepook

Variable output error, replace <?php=with<?=

I
Ivan, 2015-08-24
@onefinal

I think you need to remove gateway from eth1. Yes, and DNS'y there is not needed.

A
Azazel PW, 2015-08-24
@azazelpw

auto eth1
allow-hotplug eth1
iface eth1 inet static
address 192.168.1.1
netmask 255.255.255.0
Gateway and dns parameters, for local area network enter in DHCP, not here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question