fedora网络配置
1、Fedora Core 网络配置工具system-config-network
[root@localhost beinan]# rpm -qa |grep system-config-network
system-config-network-tui-1.3.26-1 注:这个是图形化的工具;
system-config-network-1.3.26-1 注:这个是文本化的工具;
首先查询一下看是否已经安装好这个软件包,如果没有安装,从安装盘中找出这两个包安装上;
[root@localhost beinan]#rpm -ivh system-config-network*
图形化工具主要是通过如下命令调用:
[root@localhost beinan]# /usr/bin/internet-druid
[root@localhost beinan]# /usr/bin/neat
[root@localhost beinan]# /usr/bin/neat-control 注:网络设置控制器;是图形化的
[root@localhost beinan]# /usr/bin/system-config-network-druid
[root@localhost beinan]# /usr/bin/system-control-network
[root@localhost beinan]# /usr/sbin/internet-druid 注:这个是配置internet的工具;
[root@localhost beinan]# /usr/sbin/neat 注:neat 是配置网络的工具,包含量配置internet的工具比如ADSL等;
[root@localhost beinan]# /usr/sbin/system-config-network-druid 注:是neat的一部份
[root@localhost beinan]# /usr/sbin/system-config-network-gui 注:同neat
文本模式的调用:和图形界面的差不多;
[root@localhost beinan]# /usr/bin/system-config-network
[root@localhost beinan]# /usr/bin/system-config-network-cmd
[root@localhost beinan]# /usr/sbin/neat-tui
[root@localhost beinan]# /usr/sbin/system-config-network
[root@localhost beinan]# /usr/sbin/system-config-network-cmd
[root@localhost beinan]# /usr/sbin/system-config-network-tui
2、如何用图形化网络配置工具;
[root@localhost beinan]#neat
二、一些与网络配置相关的文件和命令;
1、如果您在命令行下启动网络服务,应该是:
[root@localhost beinan]# /etc/init.d/network start
[root@localhost beinan]# /etc/init.d/network restart
比如我的系统内核网卡驱动模块存放在 /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/
比如我用的是8139的网卡,应该在 /etc/modprobe.conf 中有一行;
[root@localhost beinan]# ifconfig eth0 on 注:激活网卡eth0
[root@localhost beinan]# ifconfig eth9 down 注:断开网卡eth0
[root@localhost beinan]# ifup eth0 注:激活网卡eth0
[root@localhost beinan]# ifdown eth0 注:激活网卡eth0
[root@localhost beinan]# ifconfig -a 注:看是否激活了网络设备;
netmask:255.255.255.0
[root@LinuxSir02 root]# adsl-setup
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root): ADSL提供商给的用户名,写在这里
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): eth0这是ADSL通过第一台机器的第一张网卡eth0提供上网
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no):在这里按一下回车就行了。
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: 202.96.134.133 这是DSN,最好用你本地电信给的
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.96.168.68这是第二个DNS,也是电信给的。
PASSWORD
Please enter your Password:在这里把 ADSL提供商给的密码写上
Please re-enter your Password:确认密码
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):yes
** Summary of what you entered **
Ethernet Interface: eth0
User name: ADSL用户名
Activate-on-demand: No
Primary DNS: 202.96.134.133
Secondary DNS: 202.96.168.68
Firewalling: MASQUERADE
User Control: yes
Accept these settings and adjust configuration files (y/n)?y
[root@localhost beinan]# adsl-start
nameserver 202.96.134.188
nameserver 211.64.144.130
nameserver 202.96.134.133
转载于:https://blog.51cto.com/thethe/145966
fedora网络配置相关推荐
- Fedora 19配置KVM虚拟机的桥接网络
Fedora 19配置KVM虚拟机的桥接网络 本文讲述如何在Fedora 19下配置桥接网络,使得局域网中的其它机器能够访问KVM中的虚拟机.注:Fedora 19是宿主机器的操作系统 下面开始! 简 ...
- Fedora下网络配置及相关命令
网络参数配置 1.Fedora网络设置IP地址 查看你使用的IP网卡 ifconfig -a 找到你要Fedora 网络使用的网卡 vi /etc/sysconfig/network-scripts/ ...
- 网络管理 之 Fedora Core 网络配置工具system-config-network介绍
作者:北南南北 来自:LinuxSir.Org 提要:本文主要介绍Fedora Core 系统中的网络配置工具system-config-network,帮助初学者如何学会配置网络,以及如何设置非路由 ...
- Linux系列一 VMware 中 Fedora系统的安装与网络配置
之前一篇文章,简单地总结了自己的Linux假期培训课程.因为自己也打算开始学习Linux,所以就在这里写点东西,记录自己的学习历程,如果也能给大家带去一点帮助的话,甚是欣慰.能力时间有限,难免有疏漏的 ...
- linux网络配置、测试及故障诊断方法和工具二
网络配置的工具<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> ...
- Linux系统下网卡网络配置基础
Ifconfig命令使LINUX核心知道软件回送和网卡这样一些网络接口,这样Linux就可以使用它们.除了上面介绍的这些用法之外,ifconfig命令用来监控和改变网络接口的状态,并且还可以带上很多命 ...
- UOS国产操作系统试用图解+网络配置
一.概要 统一操作系统UOS是由我国多家国内操作系统核心企业自愿发起"UOS(unity operating system)统一操作系统筹备组"共同打造的中文国产操作系统. ...
- 学习运维——管理IPv6网络及高级网络配置
一.IPv6网络的管理 1.简介 IPv6是IETF(互联网工程任务组,Internet Engineering Task Force)设计的用于替代现行版本IP协议(IPv4)的下一代IP协议,号称 ...
- Linux系统管理实践(7):网络配置
要建立一个安全Linux服务器就首先要了解Linux环境下和网络服务相关的配置文件的含义及如何进行安全的配置.在Linux系统中,TCP/IP网 络是通过若干个文本文件进行配置的,也许你需要编辑这些文 ...
最新文章
- wampserver配置服务
- 网页禁用鼠标右键和复制功能兼容方式
- [转]半角全角互转函数[JS版 VBS版]
- httpclient 实现文件上传中转
- C++11的for循环使用auto的新用法
- 猎豹浏览器怎么查看历史记录 猎豹浏览器历史记录查看教程
- Linux 调整内核参数
- 中科院开发者公开道歉:将木兰编程语言夸大为“完全自主开发”
- 使用jave(ffmpeg)将.amr音频转码成mp3
- HFSS之天线设计实例
- Android 应用上线安卓市场
- HTML网上书店代码,jsp网上书店系统(附源代码)
- 【君思智慧园区】智慧园区建设规划方案
- python调用有道翻译_python调用有道云翻译api
- php jwt payload,php实现JWT(json web token)鉴权实例详解
- 峰哥建议你要多「旷课」
- 回顾12306数据泄露事件
- CISC和RISC的区别
- 基于clamp.js封装vue指令,处理多行文本的溢出
- [论文阅读:姿态识别Transformer] TransPose: Keypoint Localization via Transformer 2021 ICCV