[RndTbl] shaw 2nd ip

John Lange john at johnlange.ca
Wed Dec 1 16:31:54 CST 2021


Thanks for the corrections Gilbert. I'm certainly rusty at this point
having not had any need for multiple IPs for quite some time.

John


On Wed, Dec 1, 2021 at 4:06 PM Gilbert E. Detillieux <
gedetil at cs.umanitoba.ca> wrote:

> John,
>
> I think you might be conflating two different types of virtual
> interfaces.  The eth0:n notation is for a virtual interface that works
> at the IP layer, and shares the link layer, including MAC address, of
> the parent interface.  Like this...
>
> https://linuxconfig.org/configuring-virtual-network-interfaces-in-linux
>
> Then there's the eth0.n notation (note the "." rather than the ":") for
> a macvlan interface that works at the link layer, and can have a
> separate MAC address (and VLAN) from the parent interface.  This shows
> an example of each...
>
>
> https://unix.stackexchange.com/questions/21841/make-some-virtual-mac-address
>
> And this gives all the gory details of various types of virtual
> interfaces for various VM hosting scenarios...
>
>
> https://developers.redhat.com/blog/2018/10/22/introduction-to-linux-interfaces-for-virtual-networking
>
> (I learned some new concepts and lots of new terminology from this last
> one.)
>
> In any case, Linux does indeed provide a way (or more) to support
> multiple MAC addresses on one physical Ethernet interface, so setting
> this up for multiple dynamic IP addresses from Shaw should be doable.
>
> Gilbert
>
> On 2021-12-01 9:22 a.m., John Lange wrote:
> > Not sure I understood the question but yes you can have as many IPs as
> > you want on the same nic.
> >
> > It's been a while since I have done it but you just add virtual nics and
> > they look like this:
> >
> > Eth0:0
> > Eth0:1
> > Eth0:2
> > Etc.
> >
> > Each one has its own Mac and can operate independently on the network.
> > They can all be static IPs or dhcp.
> >
> > They can even be on different vlans.
> >
> > John
>
> --
> Gilbert E. Detillieux           E-mail: <gedetil at cs.umanitoba.ca>
> Dept. of Computer Science       Web:
> http://www.cs.umanitoba.ca/~gedetil/
> University of Manitoba          Phone:  (204)474-8161
> Winnipeg MB CANADA  R3T 2N2
> For best service, contact <cstech at cs.umanitoba.ca>.
>


-- 
John Lange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://muug.ca/pipermail/roundtable/attachments/20211201/d0236781/attachment.htm>


More information about the Roundtable mailing list