Add the following routing entry in the systemRoute add-net 192.168.10.0/24 GW 172.16.15.254Route add-net 192.168.177.0/24 GW 172.16.15.254Add a permanent static route (method one):[Email protected] ~]# vi/etc/sysconfig/static-routesAny net 192.168.10.0/24 GW 172.16.15.254Any net 192.168.177.0/24 GW 172.16.15.254Add a p
IfconfigRouteIpIP routeOne, ifconfig command (view or configure IP)1. View Network Connections# ifconfig \ Show all active connections, not packet-disabled devicesOr# IFCONFIG-A \ Show all active and inactive connectionsDisplays the connection for the specified interface# ifconfig Eth12. Configure IP Address# ifconfig eth1 192.168.0.1 netmask 255.255.255.Or# ifconfig eth1 192.168.0.1/243. Enable or disable the interface# ifconfig eth1 down|up or # Ifdown eth1 \ Disable interface # IFUP eht1 \ En
/maven2/org/apache/maven/surefire/surefire-testng/2.5/surefire-testng-2.5.jarDownloaded:https://Repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-testng/2.5/surefire-testng-2.5.jar (KB at 8.3 kb/sec)[INFO] Surefire Report Directory:/users/zhangbin/ideaprojects/httptest/target/surefire-reports-------------------------------------------------------T E s T s-------------------------------------------------------Running TestSuite=======this is beforeclass=======http://gateway.zitech.co
: $mode-----------------------------"Read-p "Is you sure?" [y/n]: "ActionIf ["$action" = "Y"];thenBreakFiDoneCase $mode inAddFor I in $ (seq-w $num)DoUser=${name}${i}Useradd $userecho "$pass" | passwd--stdin $user >/dev/nullIf [$?-eq 0];thenecho "$user is created"FiDone;;DelFor I in $ (seq-w $num)DoUser=${name}${i}Userdel-r $user >/dev/nullIf [$?-eq 0];thenecho "$user is deleted"FiDone;;*)echo "Program Exit"Exit 0;;Esac-----------------------------Case: Write a basic script for a batch ping with
Network Configuration Common commands Introduction:The function of the network kernel in Linux1. Execute command generated address:(effective immediately after execution, service restart after the failure)RHEL5:/etc/modprobe.confRHEL6:/etc/udev/rules.d/70-persistent-net.rulesAliasIfconfig [EthX]-A: Shows the configuration of all interfacesIfconfig EthX Ip/mask [Up|down] immediately after the configuration, network service or host failure after restartNetwork services:RHEL5:/etc/init.d/network {
distance, number of relays required to reach the specified network (not used in the Linux kernel) REF: Number of route entry references (not used in the Linux kernel) Use: The number of times the route is used, which can roughly estimate network traffic to the specified network address Iface: Output interfaceRoute-n: Use number format to display, do not reverse address to host nameRoutes added to the host: [[email protected] ~]# Route add-host 192.168.107.1
configured;Hostname=hostname HOSTNAME represents the host name of the server;Gateway=gw-ip Gw-ip represents the IP address of the network gateway;forward_ipv4=yes/no whether the IP forwarding function is turned on;Garewaydev=gw-dev GW-DW indicates the device name of the gateway, such as: eth0;In order to be compatible
ifcfg-eth1 ...
################################
### #3) configuration Modify IP address:
################################
To configure network configurations such as server IP and DNS:
1 setup-network configuration, and then modify.
2 directly edit or handwriting the above configuration file.
/etc/sysconfig/network-scripts/ifcfg-eth0 =============== "network card configuration
/etc/resolv.conf=============== Configuration of DNS Client
Tip: The above two methods generally need to be re
# ovs-vsctl ADD-BR Br1
Add a port on the br0 and mount the eth0 onto the br0. The purpose of this is to facilitate us to add multiple end statements to the virtual bridge we use so that we do not have to be limited to eth0 finite ports. Shell # ovs-vsctl Add-port br0 eth0 1 # ovs-vsctl Add-port br0 eth0
At this time we will be the original eth0 allocated IP cleared and assigned to BR0, so that the virtual machine network can continue to work through BR0. Shell # ifconfig eth0 0 up ifconfig br0
driver task: 3ffbd668, prio:23, stack:3584 I (730) wifi:init static RX buffer num:10 I (730) wifi:init Dynamic RX Buffer num:64 I ( 740) wifi:init Rx AMPDU len Mblock:7 I (740) wifi:init lldesc Rx AMPDU Entry mblock:4 I (740) Wifi:wifi Power Manager t Ask:0x3ffc2a30 prio:21 stack:2560 I (I) Wifi:wifi timer task:3ffc3ab0, prio:22, stack:3584 I (810) Wifi:mode:sta
(30:ae:a4:04:80:84)
D (810) Event:system_event_sta_start I (840) app_sta:connecting to AP ... I (960) Wifi:n:1 0, o:1 0, ap:255 255,
commands(8) When the script is start, routes to the 1.1.1.0 and 2.2.2.0 networks are configured on that host to go to 172.18.0.1.(9) When the script is stop, two routes (8) are deleted(10) When restart, the route is removed first, plus.#!/bin/bash# chkconfig:2345 19 80# description:routedif! [-d/var/lock/subsys];thenMkdir-p/var/lock/subsys >/dev/nullFi. /etc/init.d/functionsStart () {if [-e/var/lock/subsys/routed];thenAction "Staring routed:routed already runing" falseElsetouch/var/lock/subsys/
Network configuration fileIP, MASK, GW, DNS-related configuration files:/etc/sysconfig/network-scripts/ifcfg-ifaceDevice: Devices to which this profile applies, determine the device nameHWADDR: MAC address of the corresponding deviceBootproto: The address configuration protocol used when activating this device, commonly used DHCP----dynamic, static---static, none---manually specified, BOOTPnm_controlled: NM is a shorthand for NetworkManager, does this
Burning an ISO image fileGZIP-DC cd_iso.gz | Cdrecord Dev=/dev/cdrom-Burn a compressed ISO image fileMount-o Loop Cd.iso/mnt/iso mount an ISO image fileCd-paranoia-b from a CD to the audio track to the WAV fileCd-paranoia--"-3" from a CD to the audio track to the WAV file (parameter-3)Cdrecord--scanbus Scan bus to identify SCSI channelsDD IF=/DEV/HDC | md5sum Verifying the md5sum encoding of a device, such as a CDReturn Top Index ^Network-(Ethernet and WiFi wireless)Ifconfig eth0 shows the conf
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.