Day2 -- SecureCRT configuration, day2 -- securecrt
In production, we cannot see the working interface of the virtual machine. The virtual machine interface is equivalent to the display screen of the data center. In fact, we manage it in the operating tool. Here we use SecureCRT to remotely connect to the virtual machine, secureCRT settings are as follows:
1. Enable SecureCRT (Super Terminal), Click [quick link], as shown below:
2. Create a connection and set the Host Name and user name. The default port number is as follows:
3. A prompt box appears for the first time. Select "Receive and save". A dialog box is displayed, as shown in the following figure. Enter the password to log on:
4. The connection is successful, as shown below:
5. Set the session options as follows:
My settings are as follows:
(Configuration 1)
(Configuration 2)
5. Check the NIC configuration information. If ONBOOT is set to no, you need to [ifup eth0] Start the NIC every time you start the instance, as shown below:
6. Modify the NIC configuration information so that ONBOOT = yes. In this way, you do not need to start the NIC (ifup eth0) every time you start the NIC, as shown below:
Use sed-I's # ONBOOT = no # ONBOOT = yes # G'/etc/sysconfig/Network-scripts/Ifcfg-eth0, Modify the NIC configuration information
Network Interface Configuration File [root @ localhost ~] # Cat/etc/sysconfig/network-scripts/ifcfg-eth0 TYPE = Ethernet # network adapter type device = eth0 # network adapter Interface Name ONBOOT = yes # whether the system is automatically loaded at startup, whether the network adapter is started, yes automatic start, no start each time, ifup eth0, ONBOOT = no, every time you want ifup eth0 to start BOOTPROTO = static # enable address protocol-static: static protocol-bootp protocol-dhcp protocol IPADDR = 192.168.1.11 # Nic IP address NETMASK = 255.255.255.0 # Nic network address GATEWAY = 192.168.1.1 # Nic GATEWAY address DNS1 = 10.203.104.41 # Nic DNS address HWADDR = 00: 0C: 29: 13: 5D: 74 # Nic device MAC address BROADCAST = 192.168.1.255 # Network Card broadcast address re-import ifcfg-eth0 network configuration file [root @ localhost ~] #/Etc/init. d/network reload Shutting down interface eth0: [OK] Shutting down loopback interface: [OK] Bringing up loopback interface: [OK] Bringing up interface eth0: [OK] disable and activate the NIC interface [root @ localhost ~] # Ifdown eth0 # disable the network [root @ localhost ~] # Ifup eth0 # Start and close network service method 1: [root @ localhost ~] # Service network stop # disable the network service [root @ localhost ~] # Service network start # start the network service [root @ localhost ~] # Service network restart # Method 2: [root @ localhost ~] #/Etc/init. d/network stop [root @ localhost ~] #/Etc/init. d/network start [root @ localhost ~] #/Etc/init. d/network restart Nic status query [root @ localhost ~] # Service network status Configured devices: lo eth0 Currently active devices: lo eth0 temporary Nic configuration, no need to restart. [Root @ localhost ~] # Ifconfig eth0 10.1.1.10 netmask 255.0.0.0