LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Configuring Network(BASICS) Do I have only 1 Device(Interface) ? (https://www.linuxquestions.org/questions/centos-111/configuring-network-basics-do-i-have-only-1-device-interface-4175550864/)

andalogokct 08-15-2015 10:02 PM

Configuring Network(BASICS) Do I have only 1 Device(Interface) ?
 
2 Attachment(s)
How do I see how many devices I have and what are the names of them? because I can't upload every new network I configure just because of that.

I configure the damn network like "name eth1, device eth1" and it says on the first, second line OK, but on the third it fails because it can't locate the device..



My default network is auto dhcp as you guys can see..

i'm trying to create another one automatically, one statically(just to see if it goes well) and one WAN connected to my modem for tests purposes of my iptables section(I Tried system-config-network-tui, via graphics in Linux and statically).

it doesn't upload the network.. I type "ifconfig -a" and it just appears the dafult eth0.

michaelk 08-16-2015 03:36 PM

There are a few tools to show hardware information. The simplest is to look at the output of the lspci and lsusb commands. This will show all devices on the PCI and USB buses. The output of the ifconfig -a command should show all recognized network devices including those inactive and not being used.

You can create virtual ethernet devices but not wireless if you do not have an actual physical WiFi adapter.

andalogokct 08-16-2015 10:55 PM

3 Attachment(s)
Quote:

Originally Posted by michaelk (Post 5406680)
There are a few tools to show hardware information. The simplest is to look at the output of the lspci and lsusb commands. This will show all devices on the PCI and USB buses. The output of the ifconfig -a command should show all recognized network devices including those inactive and not being used.

You can create virtual ethernet devices but not wireless if you do not have an actual physical WiFi adapter.

That's the problem.. I create one then I type the device "eth1" but it doesn't work...

when I try ifconfig eth1 up it says that the device does not exist and when I run ifconfig -a it just shows the default eth0.

Why is it not working ?

look at the pictures below

andalogokct 08-16-2015 11:30 PM

Also, for the most networks I configure, the command "ifconfig -a" shows just the default "eth0" and its loopback interface, it has never showed anything more than that

michaelk 08-17-2015 06:01 AM

Did you add a second interface in virtualbox manager?

andalogokct 08-17-2015 09:49 AM

Quote:

Originally Posted by michaelk (Post 5406853)
Did you add a second interface in virtualbox manager?

Yes, I just done that. It works now, didn't know the problem was so simple..

btw this one must be way simpler than that, just adding how do I create a WAN connected to my switch ? Do I just have to choose "modem" in system-config-network-tui ?

Thanks a lot for helping!! :)

michaelk 08-17-2015 10:28 AM

If I understand the question by choosing bridged networking for one of the adapters it will be directly connected to the physical card and appear on your actual LAN.

http://www.virtualbox.org/manual/ch06.html


All times are GMT -5. The time now is 05:39 PM.