Static IP settings in Ubuntu7.10

Source: Internet
Author: User
Today, we have installed Ubuntu7.10 on the virtual machine. The default value is a dynamic IP address, which needs to be set manually. The setting method is sudovi/etc/network/interfaces: autoeth0 # slave.

Today, we installed Ubuntu 7.10 On the virtual machine. The default value is a dynamic IP address, which needs to be set manually. The setting method is as follows:

Sudo vi/etc/network/interfaces:

Auto eth0

# Iface eth0 inet dhcp

Iface eht0 inet static

Address 192.168.1.254

Netmask 255.255.255.0

Gateway 192.168.1.1

Nameserver 192.168.1.1

Sudo/etc/init. d/networking restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.