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 ~] #