The practical use for me is that the firewall I'm replacing has it configured and so I assume there may be some devices statically addressed to use the secondary gateway address. When I am onsite next I will test out those questions you asked.
Regards Michael Knill From: David Kerr <da...@kerr.net> Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net> Date: Monday, 24 June 2019 at 8:16 am To: AstLinux List <astlinux-users@lists.sourceforge.net> Subject: Re: [Astlinux-users] Secondary IP Address on LAN interface How does this work? If my INTIF has both 192.168.168.1 and 192.168.168.254 then I assume that any device on the local LAN could chose to connect to either of these IP addresses and all would be well. So any device on the LAN could ping to either .1 or .254 and get a reply. Am I correct in thinking that Astlinux would "reply" from the address that was used... so if I go to the web interface at 192.168.168.254 then Astlinux will reply from that and not from 192.168.168.1, or if I ping .254 then the reply will come from .254. What about a request initiated from Astlinux to an internal LAN device... say ping 192.168.168.99 from Astlinux... will that come from .1 or .254? Can it be specified? And would I even care? Just wondering what the practical uses of this are. Thanks David On Sun, Jun 23, 2019 at 5:40 PM Lonnie Abelbeck <li...@lonnie.abelbeck.com<mailto:li...@lonnie.abelbeck.com>> wrote: > Is this ok? Yes, that should work. Lonnie > On Jun 23, 2019, at 4:36 PM, Michael Knill > <michael.kn...@ipcsolutions.com.au<mailto:michael.kn...@ipcsolutions.com.au>> > wrote: > > Sorry Lonnie > It would be another address in the same subnet as the address on the > interface. > E.g. 192.168.168.254/24<http://192.168.168.254/24> and adding via ip a > command 192.168.168.1/24<http://192.168.168.1/24>. > > Is this ok? > > Regards > Michael Knill > > On 24/6/19, 7:30 am, "Lonnie Abelbeck" > <li...@lonnie.abelbeck.com<mailto:li...@lonnie.abelbeck.com>> wrote: > >> No it would be another address in the /24 range on the interface. > > You might have firewall issues doing that. > > Best practice is to have only one subnet off an interface. > > If a /24 won't do possibly a /22 will. The 'netcalc' command in AstLinux > can be helpful. > > Lonnie > > > >> On Jun 23, 2019, at 3:54 PM, Michael Knill >> <michael.kn...@ipcsolutions.com.au<mailto:michael.kn...@ipcsolutions.com.au>> >> wrote: >> >> Thanks Lonnie >> No it would be another address in the /24 range on the interface. >> >> Regards >> Michael Knill >> >> On 23/6/19, 11:49 pm, "Lonnie Abelbeck" >> <li...@lonnie.abelbeck.com<mailto:li...@lonnie.abelbeck.com>> wrote: >> >> >> >>> On Jun 23, 2019, at 12:35 AM, Michael Knill >>> <michael.kn...@ipcsolutions.com.au<mailto:michael.kn...@ipcsolutions.com.au>> >>> wrote: >>> >>> Hi Group >>> >>> I know there is EXTIP_ALIAS for WAN interfaces but how would I put on a >>> secondary IP Address for a LAN interface? >>> Do I need to use ‘ip addr add’ in rc.elocal? >> >> Hi Michael, >> >> Yes, rc.elocal would be the way to do that. >> >> I assume you are talking about adding a /32 . >> >> Lonnie >> >> >> >> >> _______________________________________________ >> Astlinux-users mailing list >> >> Astlinux-users@lists.sourceforge.net<mailto:Astlinux-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org<mailto:pay...@krisk.org>. >> >> >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net<mailto:Astlinux-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org<mailto:pay...@krisk.org>. > > > > _______________________________________________ > Astlinux-users mailing list > > Astlinux-users@lists.sourceforge.net<mailto:Astlinux-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org<mailto:pay...@krisk.org>. > > > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net<mailto:Astlinux-users@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org<mailto:pay...@krisk.org>. _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net<mailto:Astlinux-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org<mailto:pay...@krisk.org>.
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.