Quick Answer: Where Is Network Configuration File in Ubuntu?
Contents

How do I find my network interface Ubuntu?

You can use the following commands to list Ethernet adapters under Ubuntu Linux:

  1. lspci command – List all PCI device including Ethernet cards (NICs) on Linux.
  2. ip command – Display or manipulate routing, devices, policy routing and tunnels on Linux operating systems.

How you can configure network on Linux?

This example network interface configuration file, ifcfg-eth0, defines a static IP address configuration for a CentOS 6 server installation.

  1. # Intel Corporation 82566DC-2 Gigabit Network Connection. DEVICE=eth0. …
  2. TYPE=Ethernet. BOOTPROTO=dhcp. …
  3. NETWORKING=yes. HOSTNAME=host.example.com.
  4. default 192.168.2.1 dev eth0.
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest