Re: Connecting to a WireGuard VPN using hostname.if(5)

2025-02-08 Thread Rob Schmersel
On Fri, 7 Feb 2025 01:09:09 +0100 Odd Martin Baanrud wrote: > Hello, > > I have got access to some static IP’s via VPN using WireGuard. > The provider gave me config files for use with wg-quick(8) from the > WireGuard-tools package. It works in linux. > However, I want to test it wit OpenBSD’s i

Re: Connecting to a WireGuard VPN using hostname.if(5)

2025-02-07 Thread Lloyd
Odd Martin Baanrud wrote: > I can of corse use wg-quick, but I don’t see how to run it via rc(8). > > Regards, Martin. You can install wireguard-tools from ports as you mentioned. Then use !command syntax in your hostname.if to shell out to wg-quick. E.g. your /etc/hostname.wg0 conte

Re: Connecting to a WireGuard VPN using hostname.if(5)

2025-02-06 Thread Kapetanakis Giannis
Check ifconfig(8) man page, there is section about wireguard and the available options. ifconfig.if does not list them side note, they have to be in one line in hostname file. G On 07/02/2025 02:09, Odd Martin Baanrud wrote: > Hello, > > I have got access to some static IP’s via VPN using Wire

Re: Connecting to a WireGuard VPN using hostname.if(5)

2025-02-06 Thread Andre Smagin
On Fri, 7 Feb 2025 01:09:09 +0100 Odd Martin Baanrud wrote: > Hello, > > I have got access to some static IP*s via VPN using WireGuard. > The provider gave me config files for use with wg-quick(8) from the > WireGuard-tools package. > It works in linux. > However, I want to test it wit OpenBSD*

Re: Connecting to a WireGuard VPN using hostname.if(5)

2025-02-06 Thread Chris Narkiewicz
On Fri, Feb 07, 2025 at 01:09:09AM +0100, Odd Martin Baanrud wrote: > However, I want to test it wit OpenBSD’s integrated wg(4) driver. Here is a jinja template from Ansible role that creates hostname.wg0 on some machine somewhere in my network: inet {{ client_ipv4 }} {{ client_ipv4_netmask }} i

Connecting to a WireGuard VPN using hostname.if(5)

2025-02-06 Thread Odd Martin Baanrud
Hello, I have got access to some static IP’s via VPN using WireGuard. The provider gave me config files for use with wg-quick(8) from the WireGuard-tools package. It works in linux. However, I want to test it wit OpenBSD’s integrated wg(4) driver. I’ve read the manual, but I can’t see which optio

Re: hostname.if

2024-09-05 Thread Greg Thomas
Is this a trick question? Mine has 1. On Wed, Sep 4, 2024 at 11:50 PM wrote: > What should my hostname.if file look like. > Is there a minimum amount of settings I need? > >

Re: hostname.if

2024-09-05 Thread Peter N. M. Hansteen
On Thu, Sep 05, 2024 at 02:39:38AM -0400, openbsd_fr...@mail2tor.com wrote: > What should my hostname.if file look like. > Is there a minimum amount of settings I need? The absolute minimum would be something like up but more usefully, for a client system in a wired network, assumin

hostname.if

2024-09-04 Thread openbsd_freak
What should my hostname.if file look like. Is there a minimum amount of settings I need?

Re: Reload hostname.if file after suspend and resume (urtwn, zzz)

2024-03-25 Thread Jan Stary
On Mar 25 15:52:38, zeni...@proton.me wrote: > Thanks for the quick response. It looks like hotplugd was what I was precisely > looking for. As usual, my usecase was inside the manpage :). > As a final note, I tried to do it with the resume script but it did not seem > to > work. I guess it was b

Re: Reload hostname.if file after suspend and resume (urtwn, zzz)

2024-03-25 Thread ZenitDS
Thanks for the quick response. It looks like hotplugd was what I was precisely looking for. As usual, my usecase was inside the manpage :). As a final note, I tried to do it with the resume script but it did not seem to work. I guess it was because the attachment takes a delay from the execution

Re: Reload hostname.if file after suspend and resume (urtwn, zzz)

2024-03-25 Thread Stefan Sperling
On Mon, Mar 25, 2024 at 12:13:06PM +, ZenitDS wrote: > Hello, > On boot the urtwn0 interface is configured as expected, but after > I sleep using 'zzz', it gets resetted and I have to manually run > 'sh /etc/netstart' with root priviliges to reconfigure the interface. > I tried using /etc/apm/r

Reload hostname.if file after suspend and resume (urtwn, zzz)

2024-03-25 Thread ZenitDS
Hello, On boot the urtwn0 interface is configured as expected, but after I sleep using 'zzz', it gets resetted and I have to manually run 'sh /etc/netstart' with root priviliges to reconfigure the interface. I tried using /etc/apm/resume, but running it there made no difference. I have seen that so

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-03 Thread Steve Fairhead
On 03/12/2020 13:20, Steve Fairhead wrote: There's also this, which I wrote to help a student (my daughter) understand netmasks and CIDR notation: http://www.fivetrees.com/netmasks/netmasks.php It's kinda fun to watch the bit patterns move around... I can see from my logs that this has prove

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-03 Thread Steve Fairhead
Mike Coddington writes: > There was a useful tool that someone posted on misc a while back called > netcalc. I think this is its website: > https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/ > Check it out if you want to get a better grasp on CIDR notation. There's als

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-03 Thread Allan Streib
Chris Bennett writes: > So, what happens with 104.149.1.112? Does anybody get to actually use > it? Or is it just a placeholder? Here is my understanding. View the address 104.149.1.112 in binary format: 01101000.10010101.0001.0111 The /28 netmask is: ...00

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Stuart Henderson
On 2020-12-03, Greg Thomas wrote: > Nope, as mentioned it's the network address, for every subnet you're going > to get a network address and a broadcast address, and your usable IPs in > between. When it's used as an ethernet-type network, yes. If it's routed to you via another link (for example

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Chris Bennett
On Wed, Dec 02, 2020 at 10:51:34PM -0800, Greg Thomas wrote: > Nope, as mentioned it's the network address, for every subnet you're going > to get a network address and a broadcast address, and your usable IPs in > between. > OK, that's very clear the way you just said it. That explains really wel

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Greg Thomas
Nope, as mentioned it's the network address, for every subnet you're going to get a network address and a broadcast address, and your usable IPs in between. On Wed, Dec 2, 2020 at 10:45 PM Chris Bennett < cpb_m...@bennettconstruction.us> wrote: > On Wed, Dec 02, 2020 at 11:26:15PM -0500, Allan St

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Chris Bennett
On Wed, Dec 02, 2020 at 11:26:15PM -0500, Allan Streib wrote: > Mike Coddington writes: > > > There was a useful tool that someone posted on misc a while back called > > netcalc. I think this is its website: > > https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/ > > Check

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Allan Streib
Mike Coddington writes: > There was a useful tool that someone posted on misc a while back called > netcalc. I think this is its website: > https://jamsek.dev/posts/2019/Sep/21/ipv4-and-ipv6-cidr-subnet-calculator/ > Check it out if you want to get a better grasp on CIDR notation. There is also

Re: CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Mike Coddington
pages do? > An example might help better to explain why aliases are used when > changing network numbers. Is it a short term fix? > Is there a downside to using aliases vs CIDR? So, I'm not quite sure what you mean because in hostname.if the term "alias" refers to giving

CIDR vs aliases with ifconfig/hostname.if

2020-12-02 Thread Chris Bennett
Hi, after seeing a post here using CIDR, I re-read some manual pages. I have been using aliases, but it looks like using CIDR is the preferred method. Could someone explain that a little better than the manual pages do? An example might help better to explain why aliases are used when changing netw

ansible hostname.if role

2020-07-09 Thread Gregory Edigarov
Hello everybody, introducing this little ansible role to configure hostname.if(5) files. comments are welcome  https://github.com/gred7/ansible-openbsd-interfaces-role.git

Re: alias vs inet alias in hostname.if

2019-09-20 Thread Hrvoje Popovski
On 20.9.2019. 13:12, Stuart Henderson wrote: > On 2019-09-20, Hrvoje Popovski wrote: >> Hi all, >> >> if i have "alias" directive in hostname.if with dot-notation netmask and >> networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or >

Re: alias vs inet alias in hostname.if

2019-09-20 Thread Stuart Henderson
On 2019-09-20, Hrvoje Popovski wrote: > Hi all, > > if i have "alias" directive in hostname.if with dot-notation netmask and > networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or > /16 networks ... hostname.if(5) format is weird and a bit annoyin

alias vs inet alias in hostname.if

2019-09-20 Thread Hrvoje Popovski
Hi all, if i have "alias" directive in hostname.if with dot-notation netmask and networks are in 10/8 or 172.16/12 it seems i'm getting classless /8 or /16 networks ... inet 192.168.42.1 255.255.255.0 alias 10.10.10.0 255.255.255.0 ix0: flags=8843 mtu 1500 inet 192.1

Re: add -powersave to hostname.if

2018-06-19 Thread Ken M
On Tue, Jun 19, 2018 at 11:30:42PM +0100, Stuart Henderson wrote: > > If powersave is enabled, you'll see "powersave on (XXms sleep)" on the > ieee80211: [...] line. > > If powersave is disabled (which is the default), nothing special is printed. > Good to know, thank you. Ken

Re: add -powersave to hostname.if

2018-06-19 Thread Stuart Henderson
On 2018/06/19 18:09, Ken M wrote: > On Tue, Jun 19, 2018 at 04:53:21PM +, Stuart Henderson wrote: > > > > hostname.if(5) has this: > > > > "Any lines not matching these packed formats are passed directly to > > ifconfig(8)." > > > &g

Re: add -powersave to hostname.if

2018-06-19 Thread Ken M
On Tue, Jun 19, 2018 at 04:53:21PM +, Stuart Henderson wrote: > > hostname.if(5) has this: > > "Any lines not matching these packed formats are passed directly to > ifconfig(8)." > After reading the manpage again for hostname.if last night I spotted the way i

Re: add -powersave to hostname.if

2018-06-19 Thread Stuart Henderson
On 2018-06-18, Ken M wrote: > My thought was just to add the line > > -powersave > > in the file, just like I had added it to an iconfig commandline. Hostname.if > man > pages don't specify anything about it that I can see. > > Was my thought a stupid thought?

add -powersave to hostname.if

2018-06-18 Thread Ken M
My thought was just to add the line -powersave in the file, just like I had added it to an iconfig commandline. Hostname.if man pages don't specify anything about it that I can see. Was my thought a stupid thought? Ken

Re: Preferred configuration for SLAAC in hostname.if

2017-07-20 Thread Peter N. M. Hansteen
d 'rtsol' and 'inet6 autoconf' are > "equivalent" as far as /etc/netstart is concerned. > > What's the preferred setting for SLAAC in hostname.if(5)? "inet6 autoconf" is what you get if you choose the autoconf option during install. I wasn&#x

Preferred configuration for SLAAC in hostname.if

2017-07-20 Thread Carlos Cardenas
" as far as /etc/netstart is concerned. What's the preferred setting for SLAAC in hostname.if(5)? +--+ Carlos

Re: hostname.if manpage enhancement: be clearer about #

2016-08-12 Thread Michal Bozon
> Even adding "debug" keyword did not assure me > whether the problem is with my password definition: > wpakey s3cur3-as-#311, for illustration (was not sure > if the '#' has to be escaped somehow); or somewhere > else. Finally, it was the latter, but it took me a while > to realize that. .. or ma

Re: hostname.if manpage enhancement: be clearer about #

2016-08-12 Thread Michal Bozon
Theo de Raadt wrote: > > > As i said, my config with # in the password worked > > > without any escaping or quoting needed. > > > > > > > i understood from your mail that you'd had to escape it. > > that is correct. ... now i'm jealous, i want to be able to read other people's thoughts too.

Re: hostname.if manpage enhancement: be clearer about #

2016-08-11 Thread Theo de Raadt
> > As i said, my config with # in the password worked > > without any escaping or quoting needed. > > > > i understood from your mail that you'd had to escape it. that is correct. furthermore, some things don't have perfect escaping. not everything is perfect.

Re: hostname.if manpage enhancement: be clearer about #

2016-08-11 Thread Jason McIntyre
caped somehow); or somewhere > > > else. Finally, it was the latter, but it took me a while > > > to realize that. > > > > > > Current hostname.if manpage is not absolutely clear: > > > > > > #Comments are allowed. Anything following

Re: hostname.if manpage enhancement: be clearer about #

2016-08-11 Thread Michal Bozon
yword did not assure me > > whether the problem is with my password definition: > > wpakey s3cur3-as-#311, for illustration (was not sure > > if the '#' has to be escaped somehow); or somewhere > > else. Finally, it was the latter, but it took me a while > > to re

Re: hostname.if manpage enhancement: be clearer about #

2016-08-09 Thread Jason McIntyre
gt; whether the problem is with my password definition: > wpakey s3cur3-as-#311, for illustration (was not sure > if the '#' has to be escaped somehow); or somewhere > else. Finally, it was the latter, but it took me a while > to realize that. > > Current hostname.if manpa

hostname.if manpage enhancement: be clearer about #

2016-08-08 Thread Michal Bozon
ot sure if the '#' has to be escaped somehow); or somewhere else. Finally, it was the latter, but it took me a while to realize that. Current hostname.if manpage is not absolutely clear: #Comments are allowed. Anything following a comment character is treated as a commen

Re: Editing hostname.if files

2016-06-02 Thread Frans Haarman
2016-06-02 20:28 GMT+02:00 Otto Moerbeek : > On Thu, Jun 02, 2016 at 08:08:19PM +0200, Frans Haarman wrote: > >> I got tired of typing hostname so came up with this little tweak. Now >> atleast I have some tab completion. >> >> Maybe useful for some ? Do you have a differnt approach ? >> >> Regard

Re: Editing hostname.if files

2016-06-02 Thread Otto Moerbeek
On Thu, Jun 02, 2016 at 08:08:19PM +0200, Frans Haarman wrote: > I got tired of typing hostname so came up with this little tweak. Now > atleast I have some tab completion. > > Maybe useful for some ? Do you have a differnt approach ? > > Regards, > Frans > > > > # cd /etc/interface/ > # ls

Editing hostname.if files

2016-06-02 Thread Frans Haarman
I got tired of typing hostname so came up with this little tweak. Now atleast I have some tab completion. Maybe useful for some ? Do you have a differnt approach ? Regards, Frans # cd /etc/interface/ # ls -la total 12 drwxr-xr-x 2 root wheel 512 Jun 2 19:51 . drwxr-xr-x 23 root wheel

Re: dhclient.conf and hostname.if

2016-05-07 Thread Mark Carroll
On 07 May 2016, Stuart Henderson wrote: > On 2016-05-06, Mark Carroll wrote: (snip) >> pf ... because it otherwise doesn't realize that 'self' >> includes the address eventually assigned by PPP. > > Use "(self)" not "self". Interesting! Thank you: I'd previously missed this part of the pf.conf(5

Re: dhclient.conf and hostname.if

2016-05-07 Thread Stuart Henderson
On 2016-05-06, Mark Carroll wrote: > On 06 May 2016, Duncan Patton a. Campbell wrote: > >> Is there any similar tag to access the addess assigned by dhcp? >> What other mechanisms exist to update dynamic dns assignments? > > Could ifstated(8) help here? I've separately wondered if I ought to be >

Re: dhclient.conf and hostname.if

2016-05-06 Thread Remi Locherer
On Fri, May 06, 2016 at 04:35:47AM -0600, Duncan Patton a Campbell wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Back when the script tag was removed from dhclient.conf the > functionality to do external commands was ostensibly moved > into hostname.if

Re: dhclient.conf and hostname.if

2016-05-06 Thread Remi Locherer
On Fri, May 06, 2016 at 06:21:00AM -0600, Duncan Patton a Campbell wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Fri, 06 May 2016 12:06:58 +0100 > Mark Carroll wrote: > > > On 06 May 2016, Duncan Patton a. Campbell wrote: > > > > > Is there any similar tag to access the adde

Re: dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, 06 May 2016 12:06:58 +0100 Mark Carroll wrote: > On 06 May 2016, Duncan Patton a. Campbell wrote: > > > Is there any similar tag to access the addess assigned by dhcp? > > What other mechanisms exist to update dynamic dns assignments? > >

Re: dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
do external commands was ostensibly moved > > into hostname.if via the > > > > !command mechanism. > > > > in man hostname.if it says > > > > "It is worth noting that ``\$if'' in a command > > line will be replaced by the interface n

Re: dhclient.conf and hostname.if

2016-05-06 Thread Mark Carroll
On 06 May 2016, Duncan Patton a. Campbell wrote: > Is there any similar tag to access the addess assigned by dhcp? > What other mechanisms exist to update dynamic dns assignments? Could ifstated(8) help here? I've separately wondered if I ought to be using it to kick pf because it otherwise doesn

Re: dhclient.conf and hostname.if

2016-05-06 Thread Raf Czlonka
On Fri, May 06, 2016 at 11:35:47AM BST, Duncan Patton a Campbell wrote: > > Back when the script tag was removed from dhclient.conf the > functionality to do external commands was ostensibly moved > into hostname.if via the > > !command mechanism. > > in man hostname

dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Back when the script tag was removed from dhclient.conf the functionality to do external commands was ostensibly moved into hostname.if via the !command mechanism. in man hostname.if it says "It is worth noting that ``\$if'

Re: wifi profiles in hostname.if

2015-09-26 Thread Steve Dee
; identifiers/formatting around the network information would be required, > > much like the ssh/config parameters. > > > > Net primary { > > nwid primary > > wpakey key > > dhcp > > } > > Net secondary { > > nwid secondary > > w

Re: wifi profiles in hostname.if

2015-09-26 Thread Marc Peters
e required, > much like the ssh/config parameters. > > Net primary { > nwid primary > wpakey key > dhcp > } > Net secondary { > nwid secondary > wpakey key > dhcp > } > > > The manpage of hostname.if(5) does not specifically mention/allow

Re: wifi profiles in hostname.if

2015-09-26 Thread Stefan Sperling
wid primary > wpakey key > dhcp > } > Net secondary { > nwid secondary > wpakey key > dhcp > } > > > The manpage of hostname.if(5) does not specifically mention/allow for this. > > > > My work-around for this is to have all my locations/ap'

wifi profiles in hostname.if

2015-09-26 Thread Chris Lobkowicz
identifiers/formatting around the network information would be required, much like the ssh/config parameters. Net primary { nwid primary wpakey key dhcp } Net secondary { nwid secondary wpakey key dhcp } The manpage of hostname.if(5) does not specifically mention/allow for this. My work

Re: 5.3 change affecting hostname.if, dhcp

2013-06-07 Thread Stuart Henderson
On 2013-06-07, Kenneth R Westerback wrote: > On Thu, Jun 06, 2013 at 07:09:05PM -0400, gpon...@spamcop.net wrote: >> I recently updated from 5.2 to 5.3 and one ethernet port got broken. >> The port connected to a cable modem and was configured for DHCP. >> With 5.3, the DHCP assigned address is ge

Re: 5.3 change affecting hostname.if, dhcp

2013-06-06 Thread Kenneth R Westerback
On Thu, Jun 06, 2013 at 07:09:05PM -0400, gpon...@spamcop.net wrote: > I recently updated from 5.2 to 5.3 and one ethernet port got broken. > The port connected to a cable modem and was configured for DHCP. > With 5.3, the DHCP assigned address is getting lost when I add an > alias. Mixing dhcp an

5.3 change affecting hostname.if, dhcp

2013-06-06 Thread gpontis
I recently updated from 5.2 to 5.3 and one ethernet port got broken. The port connected to a cable modem and was configured for DHCP. With 5.3, the DHCP assigned address is getting lost when I add an alias. The alias and a route table addition give the LAN a way to communicate with the mode

Re: hostname.if(5) man page

2012-12-27 Thread Jason McIntyre
On Tue, Dec 25, 2012 at 11:50:04PM -0600, Maximo Pech wrote: > Looking at the man page of hostname.if(5) I noticed that there isn't a > FILES section. > > It may not be obvious to everyone that those files should be located in > /etc. > just added a FILES to this page... jmc

Re: hostname.if(5) man page

2012-12-26 Thread Maximo Pech
So... what do you think about this? I believe adding this could improve documentation a bit, and it is not hard to do, just add two lines to the man page, but maybe I'm missing something... 2012/12/25 Maximo Pech > Looking at the man page of hostname.if(5) I noticed that there isn

hostname.if(5) man page

2012-12-25 Thread Maximo Pech
Looking at the man page of hostname.if(5) I noticed that there isn't a FILES section. It may not be obvious to everyone that those files should be located in /etc.

Re: hostname.if: preventing IPV4 assignment

2012-08-31 Thread Stuart Henderson
On 2012-08-30, Scott <8f27e...@gmail.com> wrote: > vis-a-vis /etc/hostname.if, where the 'if' is em1 and is a real > interface that is aggregating several VLANs (as em1 is connected to a > Cisco L2 switch). Since the each of the VLAN interface has its own, > and top

Re: hostname.if: preventing IPV4 assignment

2012-08-30 Thread Camiel Dobbelaar
On 30-8-2012 23:30, Scott wrote: > vis-a-vis /etc/hostname.if, where the 'if' is em1 and is a real > interface that is aggregating several VLANs (as em1 is connected to a > Cisco L2 switch). Since the each of the VLAN interface has its own, > and topology relevant, IPV4 add

hostname.if routing question

2011-11-16 Thread Russell Garrison
I am having trouble figuring out how I should configure a physical interface and a carp virtual interface where the carp IP will serve as a default route for hosts on the network and also hold some aliases for server re-directs. From what I have seen the routes built at startup "home" the route for

Re: hostname.if(5)/ifconfig(8) configuration for gif(4)

2011-05-16 Thread Stuart Henderson
On 2011-05-15, Andreas Bartelt wrote: > Hello, > > I'm able to use the following configuration for gif0 via ifconfig(8): > > # ifconfig gif0 inet6 tunnel 2002:db8::1 2002:db8::2 > # ifconfig gif0 192.168.1.1 192.168.1.2 netmask 255.255.255.0 > > The following version of /etc/hostname.gif0 doesn't

Re: hostname.if(5)/ifconfig(8) configuration for gif(4)

2011-05-15 Thread Axton
On Sun, May 15, 2011 at 6:18 PM, Mark Felder wrote: > > On Sun, 15 May 2011 16:10:21 -0500, Andreas Bartelt wrote: >> >> Is there a way to do this correctly via /etc/hostname.gif0 ? >> >> Best regards >> Andreas >> > > Not sure if this helps, but as far as I know this is the way you're supposed t

Re: hostname.if(5)/ifconfig(8) configuration for gif(4)

2011-05-15 Thread Mark Felder
On Sun, 15 May 2011 16:10:21 -0500, Andreas Bartelt wrote: Is there a way to do this correctly via /etc/hostname.gif0 ? Best regards Andreas Not sure if this helps, but as far as I know this is the way you're supposed to do it for a 6to4 tunnel: Sanitized, but you'll get the point: $

hostname.if(5)/ifconfig(8) configuration for gif(4)

2011-05-15 Thread Andreas Bartelt
Hello, I'm able to use the following configuration for gif0 via ifconfig(8): # ifconfig gif0 inet6 tunnel 2002:db8::1 2002:db8::2 # ifconfig gif0 192.168.1.1 192.168.1.2 netmask 255.255.255.0 The following version of /etc/hostname.gif0 doesn't work: # cat /etc/hostname.gif0 inet6 tunnel 2002:db

Re: hostname.if on 4.7 ignoring "-inet6"

2010-06-16 Thread Todd T. Fries
Penned by Stuart Henderson on 20100614 12:28.46, we have: | On 2010-06-14, rh...@hushmail.com wrote: | > Hello list, | > | > I'm looking to explicitly disable IPv6 on interfaces where it is | > not used. This includes link local addresses. | > | > However, this : | > | > # cat /etc/hostname.em0

Re: hostname.if on 4.7 ignoring "-inet6"

2010-06-14 Thread rhsv6
>Please try this diff. > >Index: netstart >=== > >RCS file: /cvs/src/etc/netstart,v >retrieving revision 1.129 >diff -u -p -r1.129 netstart >--- netstart 12 Jan 2010 07:43:41 - 1.129 >+++ netstart 14 Jun 2010 11:27:47 -000

Re: hostname.if on 4.7 ignoring "-inet6"

2010-06-14 Thread rhsv6
>you can also pass extra options after "up" > >up -inet6 > >> Interesting. Well, I've already had one reply telling me to RTFM, so perhaps I missed that little gem amongst all the text to be enjoyed ! >> Please try this diff. >> > >or this... > ack. done. worked. thanks again.

Re: hostname.if on 4.7 ignoring "-inet6"

2010-06-14 Thread Reyk Floeter
On Mon, Jun 14, 2010 at 12:28:46PM +0100, Stuart Henderson wrote: > > # cat /etc/hostname.em0 > > > > description "Some Port" > > media 1000baseT > > inet 172.16.176.166 255.255.255.252 NONE > > -inet6 > > up yo

Re: hostname.if on 4.7 ignoring "-inet6"

2010-06-14 Thread Stuart Henderson
On 2010-06-14, rh...@hushmail.com wrote: > Hello list, > > I'm looking to explicitly disable IPv6 on interfaces where it is > not used. This includes link local addresses. > > However, this : > > # cat /etc/hostname.em0 >

hostname.if on 4.7 ignoring "-inet6"

2010-06-14 Thread rhsv6
Hello list, I'm looking to explicitly disable IPv6 on interfaces where it is not used. This includes link local addresses. However, this : # cat /etc/hostname.em0 description "Some Port" media 1000baseT inet

alias addresses in hostname.if for carp interfaces

2009-02-14 Thread Rogier Krieger
Dear list, While reading the manual I am having difficulty figuring out what the appropriate hostname.if(5) entries should be for the following (attempted) network setup: + Desired subnet: 172.24.10.0/24 + HP ProCurve 2900-24G; providing (tagged) VLAN 10 on a physical port + bnx0 physical parent

Re: Suggestion for hostname.if(5)

2007-12-20 Thread Jason McIntyre
On Wed, Dec 19, 2007 at 10:50:40PM +0100, Aurilien wrote: > Hi, > > In hostname.if(5), two IPv6 addresses are used in a sample: > > inet6 alias fec0::1 64 > inet6 alias fec0::2 64 anycast > > The class fec0::/10 refers to the site-local prefix which has been > d

Suggestion for hostname.if(5)

2007-12-19 Thread Aurélien
Hi, In hostname.if(5), two IPv6 addresses are used in a sample: inet6 alias fec0::1 64 inet6 alias fec0::2 64 anycast The class fec0::/10 refers to the site-local prefix which has been deprecated in September 2004. It's replaced by unique local addresses (fc00::/7 - RFC 4193). The s

Re: vlan & hostname.if "problem"

2007-10-21 Thread Chris Cappuccio
There's no real bug here, it's just a misunderstanding. If you setup "vlan1" with a vlan ID of 1 then OpenBSD will tag the packets and expect them to be tagged. Many switches expect vlan ID 1 to be untagged. To match this behavior in OpenBSD, put the IP address on the parent interface and not on

Re: vlan & hostname.if "problem"

2007-10-17 Thread Brian A. Seklecki
On a completely unrelated note, there are known problems trying to tag and utilize vlan1 (and present it to a BSD system). Google "seklecki openbsd vlan". It has to do with vlan 1 being the base vlan on trunk lines. It sucks big time -- especially since Dell managed switched dont let you chang

Re: vlan & hostname.if "problem"

2007-10-17 Thread Stuart Henderson
On 2007/10/17 16:59, Frans Haarman wrote: > Several times I have noticed my vlan not getting an IP when I use > vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3 that's not the format shown in hostname.if(5). Regular IPv4 network setup: addr_family [alias] a

Re: vlan & hostname.if "problem"

2007-10-17 Thread Theo de Raadt
> Several times I have noticed my vlan not getting an IP when I use > vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3 > > It works everytime when I use: > vlan 1 vlandev bge0 > 10.3.3.1 255.255.255.252 10.3.3.3 > > It seems the interface must be created first before the assining IP can be >

vlan & hostname.if "problem"

2007-10-17 Thread Frans Haarman
Hello, Several times I have noticed my vlan not getting an IP when I use vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3 It works everytime when I use: vlan 1 vlandev bge0 10.3.3.1 255.255.255.252 10.3.3.3 It seems the interface must be created first before the assining IP can be done ? Th

Re: /etc/hostname.if convention

2005-10-07 Thread Brian A. Seklecki
It's a solaris/sunos thing ~BAS On Fri, 2005-10-07 at 04:16, Stephan A. Rickauer wrote: > Hello, > > can anyone tell me, whether the current naming convention of > /etc/hostname.if is because of history of /etc/hostname (which has been > extended) or if there are othe

/etc/hostname.if convention

2005-10-07 Thread Stephan A. Rickauer
Hello, can anyone tell me, whether the current naming convention of /etc/hostname.if is because of history of /etc/hostname (which has been extended) or if there are other reasons. I am just curious, since it is not very descriptive compared to /etc/mygate or /etc/myname. As I say, I don&#