Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Virtual Route disappeared

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Ronsson
Posts: 1
Joined: 2015-02-23 18:03

Virtual Route disappeared

#1 Post by Ronsson »

Hi,

I have created a subnet using virtual interfaces eth0:0 on Wheezy. Suddenly - today - I noticed that the subnet no longer works. It's as if an update has changed something?

This is how /etc/network/interfaces looks:

# Loopback device:
auto lo
iface lo inet loopback

# device: eth0
auto eth0
auto eth0:0
iface eth0:0 inet static
address 192.168.45.209
broadcast 192.168.45.255
netmask 255.255.255.0
network 192.168.45.0

iface eth0 inet static
address 148.251.21.209
broadcast 148.251.21.223
netmask 255.255.255.224
gateway 148.251.21.193
# default route to access subnet
up route add -net 148.251.21.192 netmask 255.255.255.224 gw 148.251.21.193 eth0

iface eth0 inet6 static
address 2a01:4f8:201:82cf::2
netmask 64
gateway fe80::1

The current route looks like this
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default static.193.21.2 0.0.0.0 UG 0 0 0 eth0
148.251.21.192 static.193.21.2 255.255.255.224 UG 0 0 0 eth0
148.251.21.192 * 255.255.255.224 U 0 0 0 eth0
192.168.45.0 * 255.255.255.0 U 0 0 0 eth0


I can't reach other machines on the 192.168.45. network any longer:
ping 192.168.45.210
PING 192.168.45.210 (192.168.45.210) 56(84) bytes of data.
From 192.168.45.209 icmp_seq=1 Destination Host Unreachable
From 192.168.45.209 icmp_seq=2 Destination Host Unreachable


Anyone know if something has changed? Should the route be
192.168.45.0 * 255.255.255.0 U 0 0 0 eth0:0
instead? If so, how would the command be to set that and why doesn't it get set properly in /etc/network/interfaces?

Thanks,

Rolf

bassh
Posts: 4
Joined: 2015-02-25 22:13

Re: Virtual Route disappeared

#2 Post by bassh »

Is the interface UP ?

Can you post output of :

Code: Select all

ip addr show eth0:0

Post Reply