Unable to ping my server after turning off one network card
by LardFr0g from LinuxQuestions.org on (#6MJSB)
I have a problem i must solve where there are two virtual machines set to host only on vmware.
The first is running ubuntu with an ip address of 192.168.152.129
The second is running kali linux with two network cards, eth0 which has an ip of 192.168.152.128 and eth1 which has an ip of 192.168.228.128. i can ping from one machine to the other just fine but for the question i have to input these commands in the kali terminal.
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.150.129 netmask 255.255.255.0
sudo route add default gw 192.168.150.242 eth1
now the ping wont work and i need to understand how to fix it without turning on eth0.
what i have tried so far is setting eth1 to 192.168.152.130 and giving it a route of 192.168.152.1.
but pinging it still doesnt work and so i tried many solutions but found out that when i do arp -a, eth1 doesnt have 192.168.152.129 in its address and it is only listed as unknown.
Any solution would be greatly appreciated.
The first is running ubuntu with an ip address of 192.168.152.129
The second is running kali linux with two network cards, eth0 which has an ip of 192.168.152.128 and eth1 which has an ip of 192.168.228.128. i can ping from one machine to the other just fine but for the question i have to input these commands in the kali terminal.
sudo ifconfig eth0 down
sudo ifconfig eth1 192.168.150.129 netmask 255.255.255.0
sudo route add default gw 192.168.150.242 eth1
now the ping wont work and i need to understand how to fix it without turning on eth0.
what i have tried so far is setting eth1 to 192.168.152.130 and giving it a route of 192.168.152.1.
but pinging it still doesnt work and so i tried many solutions but found out that when i do arp -a, eth1 doesnt have 192.168.152.129 in its address and it is only listed as unknown.
Any solution would be greatly appreciated.