当前位置:网站首页>Ifconfig command – displays or sets network devices
Ifconfig command – displays or sets network devices
2022-06-25 05:59:00 【ProYuan28】
ifconfig The full English name of the order is “network interfaces configuring”, It is used for configuration and display Linux Network parameters of network interface in kernel . use ifconfig Command configuration network card information , After the network card restarts, the machine restarts , Configuration doesn't exist . To store the above configuration information in the computer forever , Then you need to modify the configuration file of the network card .
Grammar format :ifconfig [ Parameters ]
Common parameters :
| add< Address > | Set up network devices IPv6 Of IP Address |
| del< Address > | Delete network device IPv6 Of IP Address |
| down | Turn off the specified network device |
| up | Start the specified network device |
| IP Address | Specify the... Of the network device IP Address |
Reference examples
Display network device information :
[[email protected] ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:50:56:0A:0B:0C inet addr:192.168.0.3 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::250:56ff:fe0a:b0c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:172220 errors:0 dropped:0 overruns:0 frame:0 TX packets:132379 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:87101880 (83.0 MiB) TX bytes:41576123 (39.6 MiB) Interrupt:185 Base address:0x2024 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:2022 errors:0 dropped:0 overruns:0 frame:0 TX packets:2022 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2459063 (2.3 MiB) TX bytes:2459063 (2.3 MiB)
Start and close the specified network card :
[[email protected] ~]# ifconfig eth0 down [[email protected] ~]# ifconfig eth0 up
Configure and delete the network card IPv6 Address :
[[email protected] ~]# ifconfig eth0 add 33ffe:3240:800:1005::2/64 [[email protected] ~]# ifconfig eth0 del 33ffe:3240:800:1005::2/64
use ifconfig modify MAC Address :
[[email protected] ~]# ifconfig eth0 down [[email protected] ~]# ifconfig eth0 hw ether 00:AA:BB:CC:DD:EE [[email protected] ~]# ifconfig eth0 up [[email protected] ~]# ifconfig eth1 hw ether 00:1D:1C:1D:1E [[email protected] ~]# ifconfig eth1 up
To configure IP Address :
[[email protected] ~]# ifconfig eth0 192.168.1.56 [[email protected] ~]# ifconfig eth0 192.168.1.56 netmask 255.255.255.0 [[email protected] ~]# ifconfig eth0 192.168.1.56 netmask 255.255.255.0 broadcast 192.168.1.255
边栏推荐
- Ethernet
- Use of MySQL variables
- Multithreading and thread pool
- Deep learning non local neural networks
- SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version
- Analysis of IM project framework
- Semantic segmentation cvpr2019-advance: advantageous enterprise minimization for domain adaptation in semantic segmentation
- Day21 JMeter usage basis
- 16 application problem solving
- Technology inventory: past, present and future of Message Oriented Middleware
猜你喜欢

Getting started with mongodb

Interface learning

HashSet implementation class
SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
Vscode voice notes to enrich information (Part 1)
[interview with a large factory] meituan had two meetings. Was there a surprise in the end?
Go language map sorting (key/value sorting)

Processes and threads - concepts and process scheduling

Get the first letter of Chinese phonetic alphabet in Excel and capitalize it

ThreadLocal
随机推荐
[kicad image] download and installation
Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
Create a complete binary tree in array order
PAT (Advanced Level) Practice 1025
CST8227
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
MySQL transaction learning notes (I) first encounter
SAP ui5 beginner tutorial No. 27 - unit test tool quNit introduction trial version for SAP ui5 application
Use of MySQL variables
RT thread i/o device model and layering
Lesson 9: workspace introduction
Differences and connections between sap ui5 and openui5
Understanding of process, thread, task queue, event loop, macro task, micro task, execution stack and other concepts in JS
Vscode voice notes to enrich information (medium)
Various errors and solutions encountered when deploying SAP ui5 application to ABAP server with SAP Fiori tools
Day13 (inner class, anonymous inner class, API common class)
Mongodb basic concept learning - set
Distributed solar photovoltaic inverter monitoring
Leetcode sword finger offer question brushing - day 27