Re: Virtual Interface problem
david robert wrote:
> Today i have added one virtual interface to my server with eth0:1
> with ip address and all other details after testing i have removed
> this from /etc/network/interfaces file and restarted the networking
> service but when i check ifconfig command still it is showing both
> interfaces eth0,eth0:1
>
> Why it is showing eth0:1 how to remove this showing from ifconfig command
It shows up becuase you deleted the configuration from the file before
bringing the interface offline. It is easier of you down the
interface before removing the configuration.
Two solutions:
* Use 'ip' to delete the interface. I think this is the syntax.
ip addr del dev eth0:1
* Add a configuration back to /etc/network/interfaces and then ifdown
it. Because the configuration is back in the file it can bring the
interface down.
Bob
Reply to: