hello, kunbus team,
First, I get a dynamic IP from the DHCP router to eth0 port as 198.168. 10.34. and open the Putty using this IP.
Now by using sudo nano /etc/dhcpcd.conf I set the static IP for eth1 as 198.168.1.254.
Even the IP scanner now shows both IP in the scan list and I open the second Putty window using 198.168.1.254 as shown below.
But I am unable to ping the RevPi (cmd : ping 198.168.1.254) from my system which has given IP 198.168.1.59. even vice-versa is not getting Reply. Please help
static ip for eth1 port of RevPi
static ip for eth1 port of RevPi
- Attachments
-
- putty10.png (18.84 KiB) Viewed 10704 times
-
- ipscan_0.png (52.32 KiB) Viewed 10704 times
Re: static ip for eth1 port of RevPi
Hi Anil, it seems like you have a routing problem. The default route points to the host "192.168.10.1". Also the DNS points to this host. Maybe just a copy+paste thing that happens. Btw. you should use static "ip_address=198.168.1.254/24". If you omit the "/24" the network is just assumed to be a class C network.
Re: static ip for eth1 port of RevPi
Hello Dirk, Thanks for the response
But the default gateway and DNS are always the same as per my knowledge.
I am following this link https://raspberrypi.stackexchange.com/q ... 4428#74428.
Where am I going wrong?
Or maybe my little knowledge of Networks.
Please help me
But the default gateway and DNS are always the same as per my knowledge.
I am following this link https://raspberrypi.stackexchange.com/q ... 4428#74428.
Where am I going wrong?
Or maybe my little knowledge of Networks.
Please help me
Re: static ip for eth1 port of RevPi
Hello Dirk,
I solve the problem and here I have explained in detail. Yes, I was making a mistake to add the DNS.
First I will explain my system IP settings as shown below, in which the IP for wireless LAN has opted from wifi router generating IP range 192.168.10.2 to 192.168.10.102 Through DHCP. The IP for the Ethernet adapter side I opted from system administrator as static IP 192.168.1.59. with the DNS as 8.8.8.8and alternative DNS 4.2.2.2
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::7d8dec81:51c5%18
IPv4 Address. . . . . . . . . . . : 192.168.1.59
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::ecad:bd0e:738d:e3ac%3
IPv4 Address. . . . . . . . . . . : 192.168.10.98
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.
Now come to Revolution Pi which has two ethernet port eth0 and eth1. First port eth0 of RevPi I get the IP from DHCP router as 198.168.10.71. By using this IP I am able to access the RevPi over SSH-Putty. Now for the second port eth1 of RevPi, I set static IP as 198.168.1.222(Free IP is taken from system admin) using this https://raspberrypi.stackexchange.com/q ... 4428#74428
interface eth1
static ip_address=192.168.1.222/24
static routers=192.168.1.1
static domain_name_servers= 4.2.2.2
Now I am able to communicate (ping) from both ways i.e. from
(1) From my system(PC) to both port of RevPi(Revolution Pi)as
C:\Users\SAMRUDDHI>ping 192.168.1.222
Pinging 192.168.1.222 with 32 bytes of data:
Reply from 192.168.1.222: bytes=32 time=1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.222:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\Users\SAMRUDDHI>ping 192.168.10.71
Pinging 192.168.10.71 with 32 bytes of data:
Reply from 192.168.10.71: bytes=32 time=3ms TTL=64
Reply from 192.168.10.71: bytes=32 time=1ms TTL=64
Reply from 192.168.10.71: bytes=32 time=1ms TTL=64
Reply from 192.168.10.71: bytes=32 time=3ms TTL=64
Ping statistics for 192.168.10.71:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 2ms
(2)RevPi(Revolution Pi) to the system(PC) by opening terminal with any one of the port IP among the eth0 and eth1 of RevPi(Revolution Pi).
I solve the problem and here I have explained in detail. Yes, I was making a mistake to add the DNS.
First I will explain my system IP settings as shown below, in which the IP for wireless LAN has opted from wifi router generating IP range 192.168.10.2 to 192.168.10.102 Through DHCP. The IP for the Ethernet adapter side I opted from system administrator as static IP 192.168.1.59. with the DNS as 8.8.8.8and alternative DNS 4.2.2.2
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::7d8dec81:51c5%18
IPv4 Address. . . . . . . . . . . : 192.168.1.59
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.254
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::ecad:bd0e:738d:e3ac%3
IPv4 Address. . . . . . . . . . . : 192.168.10.98
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.10.
Now come to Revolution Pi which has two ethernet port eth0 and eth1. First port eth0 of RevPi I get the IP from DHCP router as 198.168.10.71. By using this IP I am able to access the RevPi over SSH-Putty. Now for the second port eth1 of RevPi, I set static IP as 198.168.1.222(Free IP is taken from system admin) using this https://raspberrypi.stackexchange.com/q ... 4428#74428
interface eth1
static ip_address=192.168.1.222/24
static routers=192.168.1.1
static domain_name_servers= 4.2.2.2
Now I am able to communicate (ping) from both ways i.e. from
(1) From my system(PC) to both port of RevPi(Revolution Pi)as
C:\Users\SAMRUDDHI>ping 192.168.1.222
Pinging 192.168.1.222 with 32 bytes of data:
Reply from 192.168.1.222: bytes=32 time=1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Reply from 192.168.1.222: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.1.222:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\Users\SAMRUDDHI>ping 192.168.10.71
Pinging 192.168.10.71 with 32 bytes of data:
Reply from 192.168.10.71: bytes=32 time=3ms TTL=64
Reply from 192.168.10.71: bytes=32 time=1ms TTL=64
Reply from 192.168.10.71: bytes=32 time=1ms TTL=64
Reply from 192.168.10.71: bytes=32 time=3ms TTL=64
Ping statistics for 192.168.10.71:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 3ms, Average = 2ms
(2)RevPi(Revolution Pi) to the system(PC) by opening terminal with any one of the port IP among the eth0 and eth1 of RevPi(Revolution Pi).
- Attachments
-
- stack_static.png (24.46 KiB) Viewed 10339 times
Re: static ip for eth1 port of RevPi
Hi Anil,
tank you for your positive reply.
tank you for your positive reply.