How to modify Ethereum port number
1. First, we click Start - control panel

in the way of cross-border organization cooperation, social resources are integrated through the interaction between nodes to realize the full sharing of resources, thus forming a dynamic reconfigurable and open multilateral network, and the mutual relationship and interaction formed in this process, which makes public organizations emerge with certain characteristics of network organization system
the use of public network can rece the cost and rece the expensive rental cost of long-distance dedicated digital lines for the use of private network. The public network service provider is responsible for dealing with any problems of switching service and network, and providing better data transmission service at a lower price
extended materials
in the network of public organizations, the government department is at the center of the network, which has the public power given by law, and adjusts the quantity, category and Inter Organizational Relationship of the subject of public service supply through the differentiation of rights and specialties; Through the dynamic transmission of policy, the exchange of information, the transfer of knowledge, the flow of personnel and materials, the decentralized functional organization moles are linked together in a dynamic mode to jointly perform the public service
non profit organizations, non-governmental organizations as the coordinating role, complement the shortcomings and defects of the government and commercial organizations; Private organizations, such as enterprises, become important nodes of public organization network by establishing contractual relationship with public organizations. In the supply of public goods, three different types of organizations achieve the goal of public organization system through the dynamic transmission of energy, materials and information. At the same time, they also make the optimal allocation of social resources
the first network card
undo interface eth-trunk trunk-id
the eth0 network card has been changed to the IP address of 192.168.0.1/24
the command to edit the network card in ifconfig Linux.
whether it is installed automatically or manually, Linux will ask you questions about the network and configure relevant software. The basic command used to configure the network card is ifconfig
after executing the ifconfig command, the system will set the necessary parameters in the kernel table, so that Linux knows how to communicate with the network card on the network. The ifconfig command has the following two formats:
* ifconfig [interface]
* ifconfig interface [aftype] option | address...
the first format of ifconfig (or the ifconfig command without any parameters) can be used to view the network configuration of the current system
just after the system is installed, Linux is actually used without network card or network connection, but through ifconfig, you can use loopback mode to make the computer think that it is working on the network
now let's run the ifconfig command. The ifconfig command without parameters can display the currently started network interface, The output results are as follows:
[ root@machine1 /sbin]#ifconfig
eth0 Link encap:Ethernet Hwaddr 52:54:AB:DD:6F:61
inet addr:210.34.6.89 Bcast :210.34.6.127 M ask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 M etric:1
RX packets:46299 errors :0 dropped:0 overruns :0 frame:189
TX packets:3057 errors :0 dropped:0 overruns:0 carrier :0
c ollisions:0 txqueuelen :100
I nterrupt:5 Base address:0xece0
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask :255.0.0.0
UP LOOPBACK RUNNING MTU:3924 M etric:1
RX packets:44 errors :0 dropped:0 overruns :0 frame:0
TX packets:44 errors :0 dropped:0 overruns :0 carrier:0
coll isions:0 txqueuelen : 0
the configuration parameters of the Ethernet card of the machine are the part headed by eth0, which shows the device name / dev / eth0 under the network card and the MAC address of the hardware 52:54: ab: DD: 6F: 61. The MAC address is determined by the manufacturer, and each network card has a unique address
however, we can manually change the MAC address of the NIC, as long as we add:
ifconfig eth0 HW ether XX: XX: XX: XX: XX: XX / > jiania comments:
eth0, eth1, eth2, representing NIC 1, NIC 2, Network card 3
HW stands for hardware
ether stands for Ethernet Ethernet
then restart. At this time, check with ifconfig command, and we will find that the MAC address of network card has changed to XX: XX: XX: XX: XX: XX
the IP setting method of the following network card:
set it directly through setup
configure multiple network cards ifconfig - A to view network devices eth0 / eth1 / Lo (loops)<
ifconfig eth1 / / device 1
ifconfig eth1 192.168.1.10 netmask 255.255.255.0 / / setting network card subnet and IP
man ifconfig
ifconfig -- help (T002)
command
[edit this paragraph] Linux command: ifconfig
Function Description: display or set network device
syntax: ifconfig [network device] [down up - allmulti - ARP - promise] [add & lt; Address & gt;][ del< Address & gt;][& lt; Hardware address & gt;][ media< Internet media types & gt;][ mem_ start< Memory address & gt;][ metric< Number & gt;][ mtu< Bytes & gt;][ netmask< Subnet mask & gt;][ tunnel< Address & gt;][- broadcast< Address & gt;][- pointopoint< Address & gt;]
supplementary note: ifconfig can set the status of network devices or display the current settings
parameters:
Add & lt; Address & gt; Set the IP address of network device IPv6< br /> del< Address & gt; Delete the IPv6 IP address of the network device
down close the specified network device< br /> < Hardware address & gt; Set the type of network device and hardware address< br /> io_ Addr sets the I / O address of the network device
IRQ sets the IRQ of the network device< br /> media< Types of network media & gt; Set the media type of the network device< br /> mem_ start< Memory address & gt; Set the starting address occupied by the network device in the main memory< br /> metric< Number & gt; Specifies the number to add when calculating the number of forwarding packets< br /> mtu< Bytes & gt; Set the MTU of the network device< br /> netmask< Subnet mask & gt; Set the subnet mask of the network device< br /> tunnel< Address & gt; Establish the tunnel communication address between IPv4 and IPv6
up starts the specified network device< br /> -broadcast< Address & gt; The packets to be sent to the specified address are treated as broadcast packets< br /> -pointopoint< Address & gt; Establish a direct connection with the network equipment at the specified address. This mode has the function of confidentiality
- promise turns off or starts the promise mode of the specified network device
specify the IP address of the network device
[network device] specifies the name of the network device.
three common bond modes
the configuration process takes mode = 6 as an example. For the other seven modes, please refer to the extended reading
mode = 0: load balancing mode, with automatic backup, but need "switch" support and setting. Mode = 1: automatic backup mode. If one line breaks, other lines will be automatically backup. Mode = 6: load balancing mode, with automatic backup, without "switch" support and setting
physical interface
2015610165454336.jpg (274 × 145)
CentOS version
the code is as follows:
datanode01: ~ & gt; Cat / etc / RedHat release
CentOS release 6.4 (final)
disable NetworkManager
the code is as follows:
? Disable NetworkManager immediately and disable booting
/ etc / init. D / NetworkManager stop
chkconfig NetworkManager off
/ etc / init. D / network restart
Close iptables and SELinux (optional)
code The code is as follows:
# shut down iptables immediately and disable booting
/ etc / init. D / iptables stop
chkconfig iptables off
# shut down SELinux immediately and permanently disable
setenforce 0
sed - I's / SELinux = forcing / SELinux = disabled / '/ etc / SELinux / config
modify the host name
the code as follows:
VI / etc / sysconfig / net Work
networking = yes
host name = namenode01
refresh takes effect
host name namenode01
source / etc / sysconfig / network
configure IP
private address
code as follows:
CD / etc / sysconfig / network scripts
[ root@datanode09 network-scripts]# cat ifcfg-eth3
DEVICE=eth3
ONBOOT=yes
BO Otproto = none
IPADDR = 10.129.46.19
netmask = 255.255.255.0
ipv6init = no
userctl = no
double network card binding
the code is as follows:
CD / etc / sysconfig / network scripts
? Edit eth0
Cat & gt; ifcfg-eth0 <& lt; EOF
device = eth0
onboot = yes
bootproto = none
userctl = no
Master = bond0
EOF
, edit eth2
Cat & gt; ifcfg-eth2 <& lt; EOF
device = eth2
onboot = yes
bootproto = none
userctl = no
Master = bond0
EOF
Edit bond0
Cat & gt; ifcfg-bond0 <& lt; EOF
device = bond0
type = Ethernet
onboot = yes
bootproto = none
IPADDR = 10.3.3.214
netmask = 255.255.255.0
gateway = 10.3.3.1
IPv6 init = no
userctl = no
EOF
? Set the bond parameter, and pay attention to the mode selection
Cat & gt/ etc/modprobe.conf <& lt; EOF
alias bond0 bonding
Options bond0 mimon = 100 mode = 6
EOF
? Add boot auto start parameters
Cat & gt& gt; / etc/rc.local <& lt; EOF
ifenslave bond0 eth0 eth2
EOF
? Restart NIC
service network restart
? Make binding NIC effective immediately
ifenslave bond0 eth0 eth2
? Test binding network
Ping 10.3.3.1
comparison of three commonly used NIC binding modes
mode = 0
interrupt any link or recover link, Network 0 packet loss
advantages: traffic doubled
disadvantages: the same switch needs to be connected for aggregation configuration, which can not guarantee the high availability of physical switches (Cisco seems to have a solution?)
mode = 1
interrupt any link to lose 1-3 packets (seconds), and recover the link to lose 0 packets
advantages: the switch does not need to be configured
disadvantages: as above
mode = 6
interrupt any link to lose 0 packets, and recover the link to lose 10-15 packets (seconds)
advantages: the switch does not need to be configured, and the traffic is doubled
If DNS is installed locally, check whether it is configured on the local loop IP.
