Ubuntu Forums Archive Viewer

virtual interface on interface eth0

Archived thread 1854276 from Delhi Team. Markdown source: Delhi_Team/thread_1854276_virtual_interface_on_interface_eth0.md

Original URL About this archive
#1

I create a virtual interface on interface eth0.

eg. mechine 1 and mechine 2 have ubuntu as OS mechine 1:

ifconfig eth0:1 172.16.105.1 netmask 255.255.255.0

and then check - # ping 172.16.105.1 it will give icmp reply and then i check a port on this virtual interface.

nc -vz 172.16.105.1 22

Connection to 172.16.105.1 22 port [tcp/ssh] succeeded!

mechine 2:

ifconfig eth0:1 172.16.105.1 netmask 255.255.255.0

and then check - # ping 172.16.105.1 it will give icmp reply and then i check a port on this virtual interface.

nc -vz 172.16.105.1 22

Connection connection refused.

SSHD is running on both mechine at their physical interface.

mechine 2 is working fine. then what is the problem with mechine 1?

Please reply me soon..

#2

how to post new question?