Change the Linux network configuration and use putty to connect

Source: Internet
Author: User
After installing the Oracle database, you can use putty to connect to the linux system for convenient management. However, after entering ifconfig, the local ip address is shown as follows: www.2cto.com. Therefore, you need to configure the linux network before using tools such as putty. The method is as follows: 1. method of immediate effect: w...
After installing the Oracle database, you can use putty to connect to the linux system for convenient management. After you enter ifconfig, the local ip address is displayed as follows:
Www.2cto.com


Therefore, you must configure the linux network before using tools such as putty. The method is as follows:
1. effective immediately: www.2cto.com
Run the following command under the root user:
# Ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
OK!
2 Permanent effective method:
Modify the configuration file:
/Etc/sysconfig/network-scripts/ifcfg-eth0
Add the following content:
DEVICE = eth0
ONBOOT = yes
BOOTPROTO = static
IPADDR = 192.168.0.3
NETMASK = 255.255.255.0
GATEWAY = 192.168.0.1
Last run:
Service network restart
OK!



The following is an example of using putty to connect to linux:
Login as: root
Root@192.168.0.3's password:
Last login: Thu Dec 6 20:24:35 2012
[Root @ redhat4 ~] # Ifconfig
Eth0 Link encap: Ethernet HWaddr 00: 0C: 29: 06: 5E: 84
Inet addr: 192.168.0.3 Bcast: 192.168.0.255 Mask: 255.255.255.0
Inet6 addr: fe80: 20c: 29ff: fe06: 5e84/64 Scope: Link
Up broadcast running multicast mtu: 1500 Metric: 1
RX packets: 38 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 37 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 fig: 1000
RX bytes: 4588 (4.4 KiB) TX bytes: 4629 (4.5 KiB)

Lo Link encap: Local Loopback
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
Up loopback running mtu: 16436 Metric: 1
RX packets: 1861 errors: 0 dropped: 0 overruns: 0 frame: 0
TX packets: 1861 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 2368602 (2.2 MiB) TX bytes: 2368602 (2.2 MiB)

[Root @ redhat4 ~] #
Related Article

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.