|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
Solved
Greetings all,
on my laptop, the wired interface is assigned a static IP address, with a proper defaultroute entry in the /etc/mygate. The wireless interface is configured to be assigned a dynamic IP address via DHCP. I have configured an /etc/hostname.trunk0: Code:
trunkproto failover trunkport wired_if0 trunkport wireles_if0 Code:
ext_if = "trunk0" All seems to be working, until I unplug the wired interface, at which point the defaultroute disappears from the routing table and I am unable to reach the Internet. Any ideas how to resolve the problem? Kindest regards, M Last edited by mefisto; 24th September 2017 at 08:59 PM. |
|
|||
Hi jggimi,
thank you again for the answer. Are you suggesting that I need to (1) remove the static address assignment form the wired_if0 and either (2) configure the /etc/hostname.trunk0 like: Code:
trunkproto failover trunkport wired_if0 trunkport wireles_if0 dhcp Code:
trunkproto failover trunkport wired_if0 trunkport wireles_if0 inet 192.168.1.1 255.255.255.0 If so, it appears that my goal of assigning a fixed IP address for the wired_if0 when I am on my home network and DHCP assigned address for the wireless_if0 when traveling is not achievable. Let me ask a different question then. The primary motivation was that I do not have to modify the /etc/pf.conf every time the interface is switched because there is a danger that I forget. Is there another manner of achieving not having to modify the /etc/pf.conf? Kindest regards, M |
|
||||
Quote:
Code:
description "<< Trunk port >>" up Quote:
Quote:
Quote:
Last edited by jggimi; 24th September 2017 at 01:14 PM. Reason: typos - including one regarding external NICs, as there are two. |
|
|||
Hi jggimi,
I think with you always setting me straight, I owe you a beer. Thank you. Regarding you quote to the PF User's Guide, I am aware of change of the IP address on a (physical) interface, I am actually using this in my rules. But what I am asking is, what if the (physical) interface itself changes, from e.g., bge0 to ath. How do I deal with the need with re-defining the ext_if in /etc/pf.conf. Currently, I comment/uncomment them, but I tend to forget. . . Code:
. . . ext _if = "bge" #ext_if = "ath" . . . M |
|
||||
There are many solutions. Here are four that come to mind.
|
|
|||
Hi jggimi,
success. Thank you once again. Kindest regards, M |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Changing Which Interface Is Assigned To Network Interface (physical) Port | EverydayDiesel | OpenBSD General | 2 | 18th July 2014 10:25 AM |
wired and wifi sharing but cant use bridging | domdurocher | OpenBSD General | 8 | 6th October 2011 01:47 AM |
pf.conf / Which interface ? | xinform3n | OpenBSD Security | 3 | 8th March 2010 06:23 PM |
Wired/Optical Microsoft IntelliMouse Explorer 3.0 installation | vigol | FreeBSD General | 2 | 17th November 2009 12:34 PM |
Wireless + wired = confused network setup | davidgurvich | FreeBSD General | 3 | 27th May 2008 06:10 PM |