To set the hostname directly you can become root and run You can directly query, or set, the hostname with the hostname command.Īs an user you can see your current hostname with Setting up your hostname upon a ubuntu installation is very straightforward. You need to enter all the details like address,netmask,network,broadcast and gateways values after entering all the values save this file and you need to restart networking services in debian using the following command to take effect of our new ipaddress. If you need to assign a second ipaddress to your Ubuntu machine. Setting up Second IP address or Virtual IP address in Ubuntu If you want to configure Static IP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card sudo nano /etc/network/interfaces auto loiface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.3.90 gateway 192.168.3.1 netmask 255.255.255.0 network 192.168.3.0 broadcast 192.168.3.255Īfter entering all the details you need to restart networking services using the following command # The primary network interface - use DHCP to find our addressĬonfiguring Static IP address for your network card If you want to configure DHCP address you need to edit the /etc/network/interfaces and you need to enter the following lines replace eth0 with your network interface card Configuring DHCP address for your network card
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |