当前位置:网站首页>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
边栏推荐
- [kicad image] download and installation
- By inserting a section break, the word header, footer, and page number can start from any page
- Part 33 of SAP ui5 application development tutorial - trial version of responsiveness of SAP ui5 applications
- How do product managers get started? How do they learn when no one takes them?
- Day22 send request and parameterization using JMeter
- Go language map sorting (key/value sorting)
- Laravel8 fill data
- Go uses channel to control concurrency
- Day22(File,DiGui,FileOutputStream)
- SAP ui5 beginner tutorial No. 28 - Introduction to the integration test tool OPA for SAP ui5 applications
猜你喜欢
Get the first letter of Chinese phonetic alphabet in Excel and capitalize it
MySQL tuning -- 02 -- slow query log
MySQL uses the where condition to find strange results: solve
SAP ui5 tutorial for beginners part XXVI - detailed steps for using OData service with mock server trial version
Solve some prompt codes that pychar cannot recognize selenium
Gavin's insight on transformer live class - line by line analysis and field experiment analysis of insurance BOT microservice code of insurance industry in the actual combat of Rasa dialogue robot pro
By inserting a section break, the word header, footer, and page number can start from any page
Deep learning non local neural networks
Add the author watermark plugin v1.4 update to the posts of elegant grass discuz plugin - some forums post errors and bugs have been fixed
Jenkins installation and configuration
随机推荐
Day18 (set, generic, hash table, tree, stack and queue, graph, array and linked list)
Getting started with Silverlight development 1
Wireless industrial Internet of things data monitoring terminal
Ethernet
C switch nested syntax
cacacahe
Echo command – output a string or extract the value of a shell variable
Soft exam information system project manager_ Information system security management - Senior Information System Project Manager of soft test 026
Mongodb basic concept learning - set
Use of collection
Leetcode sword finger offer question brushing - day 27
Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance
Processes and threads - concepts and process scheduling
What is SAP sup - Sybase unwired platform
Aiot project that is an introduction to the basics of the Internet of things and can be implemented in practice
Which securities company is good for opening a mobile account? Is it safe to open a mobile account?
PHP output (print) log to TXT text
JMeter stress testing and agent recording
Feignclient reported an error npe:null
Guava common collection tool classes