Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175970

Re: Sub interface not working in Debian 8

From Xen <list@xenhideout.nl>
Newsgroups linux.debian.user
Subject Re: Sub interface not working in Debian 8
Date 2016-12-27 13:40 +0100
Message-ID <sSZcR-22B-1@gated-at.bofh.it> (permalink)
References <sSY77-1nC-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Muhammad Yousuf Khan schreef op 27-12-2016 12:22:

> can you guys please guide what is going on . in old Debian version i
> do this with no problem sub interfaces were very easy task. but here i
> invest the whole day.

I must say I have run into many problems on my own machine but never 
this one.

Are you sure your gateway recognises your secondary IP?

I even have 2 IPs on such an alias and they all work fine:

iface eth0 inet manual
   pre-up ip link set eth0 up

iface eth0:0 inet dhcp

iface eth0:1 inet static
   address 149.x.x.127
   netmask 255.255.255.0

In my case I do additional routing:

ip rule add from 149.x.x.127 (that's the secondary) lookup 2
ip route add default via 149.x.x.1 (gateway address for the second IP) 
table 2

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 12:30 +0100
  Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 12:40 +0100
  Re: Sub interface not working in Debian 8 Xen <list@xenhideout.nl> - 2016-12-27 13:40 +0100
    Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 14:00 +0100
      Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 14:30 +0100
        Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 14:30 +0100
      Re: Sub interface not working in Debian 8 Xen <list@xenhideout.nl> - 2016-12-27 14:50 +0100
        Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-27 15:20 +0100
          Re: Sub interface not working in Debian 8 Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-12-27 15:40 +0100
          Re: Sub interface not working in Debian 8 Xen <list@xenhideout.nl> - 2016-12-27 16:50 +0100
            Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-28 08:20 +0100
              Re: Sub interface not working in Debian 8 Xen <list@xenhideout.nl> - 2016-12-28 10:20 +0100
                Re: Sub interface not working in Debian 8 Muhammad Yousuf Khan <sirtcp@gmail.com> - 2016-12-30 14:30 +0100

csiph-web