linux network config

Netconf网络配置协议讲解 NETCONF(Network Configuration Protocol)网络配置协议,提供一套管理网络设备的机制。用户可以使用这套机制增加、修改、删除网络设备的配置,获取网络设备的配置和状态信息。NETCONF有三个对象NETCONF客户端、NETCONF服务器、NETCONF消息。 阅读详情

1, linux 代理proxy的设置

PROXY=http://wwwgate0-hk.mot.com:1080
wwwgate0-ch.mot.com
wwwgate0-sw.mot.com
proxy: wwwgate0.mot.com
DNS:  
DNS1=10.193.143.1
DNS2=10.194.128.15
sudo vim /etc/sysconfig/network-scripts/ifcfg-eth1

 

例如:/etc/sysconfig/network-scripts/ifcfg-eth0

# D-Link System Inc DGE-530T Gigabit Ethernet Adapter (rev 11)                                                                                               
DEVICE=eth1                                                                                                                                                  
HWADDR=00:13:72:20:2f:ba                                                                                                                                     
ONBOOT=yes                                                                                                                                                   
BOOTPROTO=none                                                                                                                                               
TYPE=Ethernet                                                                                                                                                
NM_CONTROLLED=no                                                                                                                                             
IPV6INIT=no                                                                                                                                                  
USERCTL=yes                                                                                                                                                  
#DNS1=10.193.143.1                                                                                                                                           
#DNS2=10.194.128.15                                                                                                                                          
                                                                                                                                                             
DNS1=10.193.143.1                                                                                                                                            
DNS2=10.194.128.15                                                                                                                                           
IPADDR=192.168.1.2                                                                                                                                           
NETMASK=255.255.255.0                                                                                                                                        
GATEWAY=192.168.1.1  

 

2,active network  
Activate:/sbin/ifup eth0        (Also: ifconfig eth0 up- Note: Even if no IP address is assigned you can listen.)

De-Activate:/sbin/ifdown eth0    (Also: ifconfig eth0 down)

GUI Interface control/configuration:

    Start/Stop network interfaces:

        /usr/bin/system-control-network (Fedora Core 2/3) 
        /usr/bin/redhat-control-network (RH 9.0 - FC-1)

网络的设置后用什么命令可以让整个网络重新启动: /etc/init.d/network restart

/etc/init.d/network {start|stop|restart|reload|status}  加上restart就可以重启了。

service network restart

 

3,Usefull Linux networking commands:

/etc/rc.d/init.d/network    start - command to start, restart or stop the network

netstat - Display connections, routing tables, stats etc

eg:

    List externally connected processes: netstat -punta

    List all connected processes: netstat -nap

    Show network statistics: netstat -s

    Display routing table info: netstat -rn

    Display interface statistics: netstat -i

ping - send ICMP ECHO_REQUEST packets to network hosts. Use Cntl-C to stop ping.

traceroute - print the route packets take to network host.

mtr- a network diagnostic tool introduced in Fedora - Like tracerouteexcept it gives more network quality and network diagnostic info. Leaverunning to get real time stats. Reports best and worst round trip timesin milliseconds.

whois - Lookup a domain name in the internic whois database.

finger - Display information on a system user. i.e. finger user@host Uses $HOME/.plan and $HOME/.project user files. Often used by game developers. See http://finger.planetquake.com/

iptables - IP firewall administration (Linux kernel 2.6/2.4) See YoLinux firewall/gateway configuration. ipchains - IP firewall administration (Linux kernel 2.2) See YoLinux firewall/gateway configuration.

socklist - Display list of open sockets, type, port, process id and the name of the process. Kill with fuser or kill.

host - Give a host name and the command will return IP address. Unlike nslookup, the host command will use both /etc/hosts as well as DNS.     Example: host domain-name-of-server

nslookup - Give a host name and the command will return IP address. Also see Testing your DNS (YoLinux Tutorial) Note that nslookup does not use the /etc/hosts file.

 

4, Linux TCP/IP Network Configuration Files:

/etc/resolve.conf      List DNS servers for internet domain name resolution.     Manual page for: /etc/resolv.conf

/etc/hosts            Lists hosts to be resolved locally (not by DNS).      Manual page for: /etc/hosts 

/etc/nsswitch.conf      List order of host name search. Typically look at local files, then NIS server, then DNS server.     

Red Hat/Fedora/CentOS: /etc/sysconfig/network        Specify network configuration. eg. Static IP, DHCP, NIS, etc.

Red Hat/Fedora/CentOS: /etc/sysconfig/network-scripts/ifcfg-device       Specify TCP network information.

Ubuntu/Debian: /etc/network/interfaces      Specify network configuration and devices. eg. Static IP and info, DHCP, etc.

 

5, Fedora / Red Hat Network GUI Configuration Tools:

TCP/IP ethernet configuration:

    Network configuration:    /usr/sbin/system-config-network (FC-2/3)   /usr/bin/redhat-config-network (/usr/bin/neat) (RH 7.2+ FC-1)

    Text console configuration tool:  /usr/sbin/system-config-network-tui   Fedora Core 2/3  /usr/bin/redhat-config-network-tui

     Text console network configuration tool.    First interface only - eth0: /usr/sbin/netconfig

   

6, Assigning an IP address:

Command Line:

    /sbin/ifconfig eth0 192.168.10.12 netmask 255.255.255.0 broadcast 192.168.10.255

 Manually add the network configuration to /etc/sysconfig/network-scripts/ifcfg-eth0 (Red Hat/Fedora/CentOS) for the first NIC,ifcfg-eth1 for the second, etc,

  /etc/sysconfig/network-scripts/ 

/etc/sysconfig/network
/etc/sysconfig/networking/

/etc/sysconfig/network-scripts/    script

 

7, Adding a network interface card (NIC):

Red Hat Enterprise Linux 9.1 Network config 【代码】Red Hat Enterprise Linux 9.1 Network config。 阅读详情

相关推荐

代码实现 —— 基于 STM32 的可见光通信系统课程设计

基于STM32F103ZET6,源码如需移植,需要修改定时器捕获通道引脚,及定时器,如果你也有这个课设任务,希望对你有所帮助。

不善挽留 1万+

Linux network常用命令

nc:用于创建 TCP/IP 连接、监听端口等,也可作为简单的网络测试工具;ifconfig:显示和配置网络设备和接口信息(IP 地址、MAC 地址、子网掩码等);nslookup/dig:域名解析相关命令,可查询 DNS 服务器上的记录信息;ping:测试网络连通性,向目标主机发送 ICMP 请求并等待响应;

weixin_46190208的博客 1154

《深入浅出图神经网络:GNN原理解析》学习笔记

期末考完了,该上道了 目录一、图的概述1.基本概念2.图的存储和遍历3.应用分类二、神经网络基础1.机器学习2.神经网络三、卷积神经网络(CNN)1.卷积与池化2.卷积神经网络四、表示学习1.意义2.自编码器五、图信号处理与图卷积神经网络1.矩阵计算前置知识2.图信号与图的拉普拉斯矩阵3.图傅里叶变换4.图滤波器(Graph Filter)5.图卷积神经网络(GCN) 一、图的概述 1.基本概念 1.顶点(Vertex)表示研究的对象,边(Edge)表示两个对象之间特定的研究关系 2.图为顶点和边的集合.

且视他人之疑目如盏盏鬼火,大胆地去走你的夜路 2047

linux设置网络network configuration

1:输入 setup  回车,看到下面的界面,选择Network  configuration ,回车后在选择Device configuration。 2:设置虚拟机的IP 首先查询本机的Ip ,win+r 输入cmd ,进入dos 界面,输入 ipconfig /all 查看本机连接的网络地址 3.配置虚拟机IP 进入相应的配置页面,就可以在下面的界

onetesters的博客 6525

【经验分享】使用Keil5烧录代码遇到的问题及解决方法

本文介绍了在使用Keil5烧录代码过程中可能遇到的常见问题,主要为编译错误和下载失败,并提供了解决方案和注意事项。通过本文中提供的具体解决方案和注意事项,希望能够帮助读者更加顺利地进行Keil5烧录代码操作,提高开发效率和成果实现。

qq_63195670的博客 1万+

多模态模型评测神器 | OpenCompass MMBench 了解一下!

MMBench 是 OpenCompass 研究团队自建的视觉语言模型评测数据集,可实现从感知到认知能力逐级细分评估。研究团队从互联网公开信息与权威基准数据集采集约 3000 道单项选择题 ,覆盖目标检测、文字识别、动作识别、图像理解、关系推理等 20 个细粒度评估维度。

OpenCompass的博客 7826

linux网络设置

网卡配置文件参数当修改完Linux系统中的服务配置文件后,并不会对服务程序立即产生效果。想要让服务程序获取到最新的配置文件,需要手动,之后就会看到网络畅通了。nmcli命令是redhat7或者centos7之后的命令,该命令可以完成网卡上所有的配置工作,并且可以写入配置文件,永久生效。安装包:yum provides nmcli设备名就是硬件名,连接名是我们自己起的。nmcli命令操作的时候都是操作的连接,若不连接则无法操作。

m0_63963588的博客 1272

新手避坑指南:HT7036计量芯片SPI读取电压的完整流程(从复位到校准)

本文详细介绍了HT7036计量芯片的SPI读取电压完整流程,从硬件准备到校准设置,重点解析了复位引脚处理、SPI通信配置、芯片初始化及数据处理等关键步骤。针对常见问题如晶振焊接、SPI时序错误等提供实用解决方案,帮助开发者高效完成电压测量与校准。

weixin_30070339的博客 326

【Linux】Linux网络配置基础2 system-config-network配置网卡访问外网

Linux网络配置基础2 system-config-network配置网卡访问外网 OS:RedHat EnterpriseLinux6.4 当前电脑无线网卡使用DHCP自...

citiao3931的博客 1716

2024东南大学533复试C++程序设计笔试真题精讲

【东南553复试C++】2024东南大学533复试C++程序设计笔试真题精讲

转遍世界 3414

Temporal Fusion Transformer(TFT)与扩散模型融合:时间序列预测新范式

本文探讨了Temporal Fusion Transformer(TFT)与扩散模型融合的时间序列预测新范式。该融合方案利用TFT强大的特征提取与可解释性,为扩散模型提供精准的“导航图”,从而在噪声数据中实现鲁棒预测,并原生支持不确定性量化,输出完整的概率分布与置信区间,为金融、能源等领域的风险决策提供更可靠的依据。

weixin_29096377的博客 289

linux命令network,Linux network config

网络端口配置 ifconfig查看命令:[root@localhost ~]# ifconfigeth0 Link encap:Ethernet HWaddr 00:E0:4C:B0:4F:59inet6 addr: fe80::2e0:4cff:feb0:4f59/64 Scope:Link ;主机地址信息UP BROADCAST ...

weixin_39737368的博客 483

基础入门篇 | YOLOv8 项目【训练】【验证】【推理】最简单教程 | YOLOv8必看 | 最新更新,直接打印 FPS,mAP50,75,95

三个文件搞定YOLOv8【训练】【验证】【推理】🚀🚀🚀

Coding... 2万+

Config the Network in Linux

####### The local networking ######## auto lo iface lo inet loopback ##################################### ####### The DHCP networ

用文章记录成长 748

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

system-config-network

system-config-network You can also edit the following files and ‘service network restart’. /etc/sysconfig/network /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/resolv.conf system-config-network is a...

shaowei的博客 1274

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

How to configure the network for Linux

1 GUI tool system-config-network# system-config-network &2 Command line tool system-config-network-tui# system-config-network-tui &3 Edit configuration files stored in# cd /etc/sysconfig/net

iQUEEN的专栏 1187

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

linux网卡配置

linux的网卡配置可以通过两个命令,redhat-conifg-network和ifconfig。不同的是ifconfig针对网卡的配置只对当前登录有效,下次启动机器时ifconfig的配置将失去作用。redhat-conifg-network命令会修改/etc/sysconfig/networking/devices目录当中的网卡配置文件(以ifcfg-eth0命名)下一次启动机器时会根据该文

snipgun的专栏 2453

linux刷图形的命令,linux下的图形工具命令.doc

linux下的图形工具命令/usr/sbin/system-config-network-tui/usr/sbin/system-config-services/usr/sbin/system-config-network/usr/sbin/system-config-printer/usr/sbin/system-config-packages/usr/sbin/system-config-ne...

weixin_30595763的博客 149

linux网络相关属性的配置

linux下配置网络一般有三种方式: 1.命令配置(#ifconfig,#ip) 2.基于图形或文本图形界面 gui (#system-config-network-gui) tui (#system-config-network-tui) 3.编辑配置文件 /etc/sysconfig/network-scripts/ifcfg-ethX(X代表0,1,2...

weixin_33922672的博客 128

命令方式联网与界面network-manager方式联网

命令方式联网: sudo vi /etc/NetworkManager/NetworkManager.conf [main]plugins=ifupdown,keyfile,ofonodns=dnsmasq[ifupdown]managed=truechange the managed=true to managed=false 然后配置 sudo vi /etc/network/inte...

weixin_30653097的博客 383

linux下的图形工具

linux下的图形工具 system-config-kdump system-config-network system-config-date system-config-samba system-c...

congyun6558的博客 160

linux dns errot,Linux下DNS的问题

该楼层疑似违规已被系统折叠隐藏此楼查看此楼Nov 9 06:36:22 BJ-linux kernel: end_request: I/O error, dev fd0, sector 0Nov 9 06:36:22 BJ-linux kernel: end_request: I/O error, dev fd0, sector 0Nov 9 06:37:06 BJ-linux sy...

weixin_42516119的博客 214
上一篇: 他人的linux书架
下一篇: vim: 如何使粘贴到vim的代码排列整齐
bamboolsu
博客等级 码龄22年 200粉丝 394原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值