On Wed, 12 Jun 2024 10:39:36 +0000 "Poul-Henning Kamp" <p...@phk.freebsd.dk> wrote: > Ronald Klop writes: > > > What do you thing about defaulting to /32 on a missing netmask? > > An interface with 1 IP address without any information about the > > network All traffic can go to the gateway. > > I dont think that will work ? > > The gateway will not be inside any of the attached networks, so you > have no route to it ? > You can do an interface route hack sysrc static_routes="gateway default" sysrc route_gateway="-host 1.2.3.4 -interface bla0" sysrc route_default="default 1.2.3.4" This is actually quite useful in some setups, but in the context of deciding on default behavior when no mask is given this is probably not very helpful. Cheers -- Michael Gmelin
- 14.1-R rc.conf/ifconfig netmask issue was really hard to... Poul-Henning Kamp
- Re: 14.1-R rc.conf/ifconfig netmask issue was reall... Ronald Klop
- Re: 14.1-R rc.conf/ifconfig netmask issue was r... Poul-Henning Kamp
- Re: 14.1-R rc.conf/ifconfig netmask issue w... Michael Gmelin
- Re: 14.1-R rc.conf/ifconfig netmask iss... Poul-Henning Kamp
- Re: 14.1-R rc.conf/ifconfig netmas... Michael Gmelin
- Re: 14.1-R rc.conf/ifconfig netmas... Bob Bishop
- Re: 14.1-R rc.conf/ifconfig netmas... Rodney W. Grimes
- Re: 14.1-R rc.conf/ifconfig ne... Poul-Henning Kamp
- Re: 14.1-R rc.conf/ifconfig netmas... Lowell Gilbert
- Re: 14.1-R rc.conf/ifconfig ne... Rodney W. Grimes
- Re: 14.1-R rc.conf/ifconfi... Mathieu Arnold
- Re: 14.1-R rc.conf/ifconfi... Rodney W. Grimes
- Re: 14.1-R rc.conf/ifconfig netmask issue w... Ronald Klop