Networking2013/01/16 |
[1] | Set Hostname and static IP address to the server, DHCP is not recommended if you use as a server. ( Replace the section 'ifcfg-***' to your own interface name ) |
# install the package below which includes ifconfig, netstat and so on first [root@localhost ~]# yum -y install net-tools
[root@localhost ~]#
vi /etc/hostname # add your hostname dlp.srv.world
[root@localhost ~]#
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
[root@localhost ~]# ONBOOT=yes NETBOOT=yes UUID=e9576152-51f2-44bf-b2bf-cb738563f862 DHCPV6C=yes # change BOOTPROTO= none HWADDR="52:54:00:6d:2e:3e" TYPE=Ethernet NAME="Boot Disk" # add follows # this server's IP address IPADDR=10.0.0.30 # subnet mask NETMASK=255.255.255.0 # default gateway GATEWAY=10.0.0.1 # DNS server's IP address DNS1=10.0.0.10 systemctl disable NetworkManager.service rm '/etc/systemd/system/dbus-org.freedesktop.NetworkManager.service' rm '/etc/systemd/system/multi-user.target.wants/NetworkManager.service' rm '/etc/systemd/system/network.target.wants/NetworkManager-wait-online.service' [root@localhost ~]# chkconfig network on
[root@localhost ~]#
dlp login:
[root@dlp ~]# Fedora release 18 (Spherical Cow) Kernel 3.6.10-4.fc18.x86_64 on an x86_64 (ttyS0) eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 10.0.0.30 netmask 255.255.255.0 broadcast 10.0.0.255 inet6 fe80::5054:ff:fe6d:2e3e prefixlen 64 scopeid 0x20<link> ether 52:54:00:6d:2e:3e txqueuelen 1000 (Ethernet) RX packets 69 bytes 5960 (5.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 77 bytes 5586 (5.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
[2] | Disable IPv6 if you do not need it. |
[root@localhost ~]#
vi /etc/default/grub # line 6 : add like follows GRUB_CMDLINE_LINUX=" ipv6.disable=1 rd.lvm.lv=fedora/swap rd.md=0.....
grub2-mkconfig -o /boot/grub2/grub.cfg [root@localhost ~]# |
Sponsored Link |
|