Software Knowledge

  1. Home
  2. Docs
  3. Software Knowledge
  4. LINUX
  5. Linux: Network basic configuration file setup
Generic selectors
Exact matches only
Search in title
Search in content

Linux: Network basic configuration file setup

Linux Setup

vi /etc/sysconfig/network (hostname)

vi /etc/hosts add IP name

ifconfig copy macaddress

vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

HWADDR=00:50:56:A9:95:ED

ENGINE=Ethernet

ONBOOT=yes

BOOTPROTO=static

IPADDR=192.168.0.145

NETMASK=255.255.255.0

service network restart

*แก้ให้เป็ยน eth0

# PCI device 0x15ad:0x07b0 (vmxnet3)

vi /etc/udev/rules.d/70-persistent-net.rules

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”00:50:56:a9:95:ed”, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″