当前位置:网站首页>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
边栏推荐
- Folding mobile phones are expected to explode, or help Samsung compete with apple and Chinese mobile phones
- Getting started with Silverlight development 1
- Noi Mathematics: Dirichlet convolution
- Design of IM login server and message server
- HashSet implementation class
- Code learning-cvpr2020 unsupervised domain adaptive semantic segmentation: intra advance
- SAP ui5 date type sap ui. model. type. Analysis of date parsing format
- Guava new collection type
- MySQL tuning -- 02 -- slow query log
- SAP ui5 Application Development Tutorial Part 30 - parameter transfer in the routing process of SAP ui5
猜你喜欢

MySQL uses the where condition to find strange results: solve

Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response
Tutorial 35 of SAP ui5 application development - how to deploy locally developed SAP ui5 applications to ABAP server for trial reading

ThreadLocal

Use of pytorch tensorboard
SAP Fiori tools and corresponding cli (command line interface)

Farewell to Lombok in 996
Do you know what a three-tier architecture is?

Three tier architecture experiment
SAP ui5 beginner tutorial 25 - using proxy server to solve the cross domain problem of SAP ui5 application accessing remote OData service trial version
随机推荐
Lesson 8: FTP server setup and loading
Click to send text messages without response is a common problem for many users in building the elegant grass Dragonfly Q system - solve the problem of clicking to send text messages without response
Go quiz: considerations for function naming return value from the go interview question (more than 80% of people answered wrong)
Interview experience - list of questions
Mongodb delete data
The e-book "action guide for large organizations to further promote zero code application platform" was officially released!
Day19 (variable parameter, enhanced for loop traversal, generic wildcard <? >, TreeSet, linkedhashset, nested traversal of sets, set set, static import,)
Summary of 6 common methods of visual deep learning model architecture
[untitled]
Solve some prompt codes that pychar cannot recognize selenium
[QT] for multithreaded programs, do not use the printf() function to print out
Kyma application connectivity feature introduction
DOM proficient? What is the difference between node and elment?
50 days countdown! Are you ready for the Landbridge cup provincial tournament?
MySQL -- optimize query statements and use not in with cases
Analysis of IM project framework
Soft exam information system project manager_ Management Science (Operations Research) -- senior information system project manager of soft test 033
No one reads the series. Source code analysis of copyonwritearraylist
[JS basic review] scope, this, closure
Common cluster deployment schemes in redis