KM KPN | แหล่งเรียนรู้ โรงพยาบาลกรงปินัง

ค่า Config Network บน CentOS6.7 และ Ubuntu14

ค่า Config Network บน CentOS6.7 และ Ubuntu14
« เมื่อ: มิถุนายน 20, 2022, 05:41:47 pm »
ค่า Config Network บน CentOS6.7 และ Ubuntu14

### CentOS7 ###############

DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
IPADDR=192.168.1.39
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1
DOMAIN=demo.local
USERCTL=no



### Ubuntu14.04 ###############

auto eth0
iface eth0 inet static
hwaddress ether 00:50:56:B8:FF:81
address 10.233.0.14
netmask 255.255.252.0
gateway 10.233.0.1