Difference between revisions of "Linux Network Config"
Line 34: | Line 34: | ||
hostname {hostname}.hypersecuresolutions.com | hostname {hostname}.hypersecuresolutions.com | ||
+ | |||
+ | == Network Manager Systemd == | ||
+ | Use the following to manually edit the NetworkManager system settings: | ||
+ | vi /etc/NetworkManager/system-connections/Wired\ connection\ 1 |
Latest revision as of 17:30, 6 March 2017
Linux Network Hostname Setup
- To set the hostname of the computer, do the following:
vi /etc/sysconfig/network
- Edit /etc/sysconfig/network to look like the following:
NETWORKING=yes HOSTNAME={hostname}.hypersecuresolutions.com
- Save and exit.
- Then edit your ifcfg-eth0 config file with the following command:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
- Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to look like the following:
DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:E0:81:63:99:81 # This line is different for every card ONBOOT=yes TYPE=Ethernet DHCP_HOSTNAME={hostname} USERCTL=no PEERDNS=yes IPV6INIT=no
- Save and exit.
- Next, type in the following on the command promt to set hostname:
hostname {hostname}.hypersecuresolutions.com
Network Manager Systemd
Use the following to manually edit the NetworkManager system settings:
vi /etc/NetworkManager/system-connections/Wired\ connection\ 1