I'm using Pi B+ with Raspbian.
I need Raspberry pi to work with 2 networks so i use usb to ethernet adapter.
I have a problem that when the usb2Ethernet adapter is connected to the pi, I can't ssh the pi via the buidIn network inteface but only via the usb adapter ip address. If I disconnect the usb adapter and restart pi, ssh to the buildin interface ip address working fine.
The buildin ethernet interface is eth0 and the usb adapter is eth1; both with static ip, no more network adapters.
I'm chacked with:
Code: Select all
netstat -tulpncan somebody give me advice?
Output of netstat -tulpn
Code: Select all
root@raspberrypi:~# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1933/apache2
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2141/sshd
udp 0 0 192.168.2.127:123 0.0.0.0:* 2095/ntpd
udp 0 0 127.0.0.1:123 0.0.0.0:* 2095/ntpd
udp 0 0 0.0.0.0:123 0.0.0.0:* 2095/ntpd
Code: Select all
root@raspberrypi:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.2.127
network 192.168.2.0
netmask 255.255.0.0
gateway 192.168.2.1
iface eth1 inet static
address 192.0.0.70
network 192.0.0.0
netmask 255.255.255.0
gateway 192.0.0.1
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Thanks