DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd June 2023
dnslc's Avatar
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 24
Default ifconfig interface creation not working

I am trying to create a virtual interface.

But I get this error:
Code:
localhost$ sudo ifconfig vio0 create
ifconfig: clone_command: Invalid argument
ifconfig: exec_matches: Invalid argument
I am running NetBSD 9.3 with GENERIC kernel.

Is there something I am doing wrong or do I need to do something else before I can create a virtual interface?

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 2nd June 2023
Onauk's Avatar
Onauk Onauk is offline
Real Name: Thomas
Fdisk Soldier
 
Join Date: Jan 2023
Location: France
Posts: 60
Default

Hello,

According to the ifconfig man page, at runtime you can only create a limited number of interfaces, and vio0 isn't one of them.
Code:
     -C      Print the names of all network pseudo-devices that can be created
             dynamically at runtime using ifconfig create.
Reply With Quote
  #3   (View Single Post)  
Old 2nd June 2023
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I didn't know NetBSD had a vio(4) driver -- I'd thought it used vioif(4) instead. But I'm not a NetBSD user and might be wrong. Either way, virtio(4) devices are made available by a host hypervisor to guest virtual machines, and are discovered during guest kernel boot. They are not pseudo devices.
Reply With Quote
  #4   (View Single Post)  
Old 6th June 2023
dnslc's Avatar
dnslc dnslc is offline
Port Guard
 
Join Date: Jun 2020
Location: Australia
Posts: 24
Default

Quote:
Originally Posted by Onauk View Post
Hello,

According to the ifconfig man page, at runtime you can only create a limited number of interfaces, and vio0 isn't one of them.
Code:
     -C      Print the names of all network pseudo-devices that can be created
             dynamically at runtime using ifconfig create.
OK thanks for the information.
That command was actually written by Bing AI (how to create virtual interface on NetBSD 9.3)
All its other code has worked just fine for me. I'll start double checking specific device and interface names though from now on.

Last edited by dnslc; 6th June 2023 at 02:36 AM.
Reply With Quote
  #5   (View Single Post)  
Old 6th June 2023
Onauk's Avatar
Onauk Onauk is offline
Real Name: Thomas
Fdisk Soldier
 
Join Date: Jan 2023
Location: France
Posts: 60
Default

Quote:
Originally Posted by dnslc View Post
OK thanks for the information.
As said by jggimi, I was wrong, virtio(4) devices are not pseudo devices. They are enabled at kernel boot.
Reply With Quote
Reply

Tags
netbsd ifconfig virtual interface

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD raw image creation with partitions niks007 OpenBSD General 2 2nd December 2020 01:57 AM
ifconfig and superuser LeFrettchen OpenBSD General 2 29th October 2017 09:08 PM
New Firewall Creation Amithapr OpenBSD Security 11 27th October 2016 02:05 PM
Changing Which Interface Is Assigned To Network Interface (physical) Port EverydayDiesel OpenBSD General 2 18th July 2014 10:25 AM
Thread creation kalimuthu NetBSD General 0 7th December 2010 05:11 PM


All times are GMT. The time now is 12:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick