Differences
This shows you the differences between two versions of the page.
en:ipsetincenos [2015/04/05 21:20] – created translator1 | en:ipsetincenos [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | 1) Interface configuration using DHCP service example: | ||
- | |||
- | #vim / | ||
- | DEVICE=eth0 | ||
- | BOOTPROTO=dhcp | ||
- | HWADDR= 00-19-DB-AD-19-99 | ||
- | ONBOOT=yes | ||
- | |||
- | 2) Interface configuration using manually set parameters: | ||
- | |||
- | #vim / | ||
- | DEVICE=eth0 | ||
- | HWADDR= 00-19-DB-AD-19-99 | ||
- | IPADDR=192.168.1.2 | ||
- | NETMASK=255.255.255.0 | ||
- | BROADCAST=192.168.1.255 | ||
- | | ||
- | ONBOOT=yes | ||
- | DNS1=8.8.8.8 | ||
- | DNS2=8.8.4.4 | ||
- | |||
- | To check the interface configuration: | ||
- | |||
- | ifconfig eth0 | ||
- | |||
- | To check the routes: | ||
- | |||
- | netstat -r | ||
- | |||
- | To restart the interface and to apply the new settings: | ||
- | |||
- | ifdown eth0 - disable | ||
- | ifup eth0 - enable | ||