networkmanaged configuracion
TRANSCRIPT
-
8/16/2019 NetworkManaged Configuracion
1/9
Chapter 5. Network Configuration FEDORA 19
5.1. The NetworkManager Daemon5.2. Interacting with NetworkManager 5.3. Configuring Connection Settings
NetworkManager is a dynamic network contro and configuration system that attem!ts to kee! network de"ices and connections u! and acti"e when they are a"aia#e. NetworkManager consists of a coredaemon$ a %N&M' Notification (rea a!!et that !ro"ides network status information$ and gra!hica
configuration toos that can create$ edit and remo"e connections and interfaces. NetworkManager can #eused to configure the foowing ty!es of connections) 'thernet$ wireess$ mo#ie #road#and *such asceuar 3%+$ and DSL and PPPoE *,oint-to-,oint o"er 'thernet+. In addition$ NetworkManager aows
for the configuration of network aiases$ static routes$ DNS information and ,N connections$ as we asmany connection-s!ecific !arameters. /inay$ NetworkManager !ro"ides a rich (,I "ia D-0us which
aows a!!ications to uery and contro network configuration and state.
,re"ious "ersions of /edora shi!!ed with the Network Administration oo!$ which was commonyknown as system-config-network after its command ine in"ocation. In /edora 1$
NetworkManager re!aces the former Network Administration oo! whie !ro"iding enhancedfunctionaity$ such as user-s!ecific and mo#ie #road#and configuration. It is aso !ossi#e to configure
the network in /edora 1 #y editing interface configuration fies refer to Cha!ter $ Network Interfacesfor more information.
NetworkManager may #e instaed #y defaut on /edora. To ensure that it is$ first run the foowingcommand as the root user)
~]# yum install NetworkManager
5.1. he NetworkManager Daemon
The NetworkManager daemon runs with root !ri"ieges and is usuay configured to start u! at #oot
time. 4ou can determine whether the NetworkManager daemon is running #y entering this command asroot)
~]# service NetworkManager statusNetworkManager (i! "$%& is running'''
The service command wi re!ort NetworkManager is stoe! if the NetworkManager
ser"ice is not running. To start it for the current session)
~]# service NetworkManager start
un the ckconfig command to ensure that NetworkManager starts u! e"ery time the system #oots)
~]# ckconfig NetworkManager on
/or more information on starting$ sto!!ing and managing ser"ices and rune"es$ refer to Cha!ter 6$
Controlling Access to Services.
5.". #ntera$ting with NetworkManager
7sers do not interact with the NetworkManager system ser"ice directy. Instead$ you can !erform
network configuration tasks "ia NetworkManager8s Notification (rea a!!et. The a!!et has muti!estates that ser"e as "isua indicators for the ty!e of connection you are currenty using. 9o"er the !ointer o"er the a!!et icon for tooti! information on the current connection state.
1
http://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Network_Configuration.html#sec-The_NetworkManager_Daemonhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/sec-Interacting_with_NetworkManager.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/sec-Configuring_Connection_Settings.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Controlling_Access_to_Services.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Controlling_Access_to_Services.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Network_Configuration.html#sec-The_NetworkManager_Daemonhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/sec-Interacting_with_NetworkManager.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/sec-Configuring_Connection_Settings.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Controlling_Access_to_Services.htmlhttp://docs.fedoraproject.org/en-US/Fedora/14/html/Deployment_Guide/ch-Controlling_Access_to_Services.html
-
8/16/2019 NetworkManaged Configuracion
2/9
NetworkManager a!!et states
If you do not see the NetworkManager a!!et in the %N&M' !ane$ and assuming that the
NetworkManager !ackage is instaed on your system$ you can start the a!!et #y running the foowingcommand as a norma user *not root+)
~]) nm-alet *
(fter running this command$ the a!!et a!!ears in your Notification (rea. 4ou can ensure that the a!!etruns each time you og in #y cicking %&stem : 'referen$es : %tartup App!i$ations to o!en the%tartup App!i$ations 'referen$es window. Then$ seect the %tartup 'rograms ta# and check the #o;ne;t to NetworkManager.
5.2.1. Connecting to a Network
-
8/16/2019 NetworkManaged Configuracion
3/9
The NetworkManager a!!et8s conte;t menu
'nsure that the Ena*!e Networking #o; is checked. if the system has detected a wireess card$ then youwi aso see an Ena*!e (ire!ess menu o!tion. Check the Ena*!e (ire!ess check#o; as we.NetworkManager notifies you of network connection status changes if you check the Ena*!e
Notifi$ations #o;. Cicking the Conne$tion #nformation entry !resents an informati"e Conne$tion#nformation window that ists the connection ty!e and interface$ your I, address and routing detais$ andso on. 7sefu network information is thus aways two cicks away.
/inay$ cicking on Edit Conne$tions o!ens the Network Conne$tions window$ from where you can !erform most of your network configuration tasks. Note that this window can aso #e o!ened #y running$as a norma user) ~]) nm-connection-e!itor *
Configure networks using the Network Connections window
5.2.3. Connecting to a Network Automatically
/or any connection ty!e you add or configure$ you can choose whether you want NetworkManager totry to connect to that network automaticay when it is a"aia#e.
'ro$edure 5.1. Configuring NetworkManager to Conne$t to a Network Automati$a!!& (hen
Dete$ted
1. ight-cick on the NetworkManager a!!et icon in the Notification (rea and cick EditConne$tions. The Network Conne$tions window a!!ears.
2. Seect the ta# for the ty!e of network connection you want to configure.
3. Seect the s!ecific connection that you want to configure and cick Edit.. Check Conne$t automati$a!!& to cause NetworkManager to auto-connect to the connection
whene"er NetworkManager detects that it is a"aia#e. 7ncheck the check#o; if you do notwant NetworkManager to connect automaticay. If the #o; is unchecked$ you wi ha"e to
3
-
8/16/2019 NetworkManaged Configuracion
4/9
seect that connection manuay in the NetworkManager a!!et8s eft-cick menu to cause it toconnect.
5.2.4. User and ystem Connections
NetworkManager connections are aways either user connections or system connections. De!ending onthe system-s!ecific !oicy that the administrator has configured$ users may need root !ri"ieges to create
and modify system connections. NetworkManager8s defaut !oicy ena#es users to create and modifyuser connections$ #ut reuires them to ha"e root !ri"ieges to add$ modify or deete system connections.7ser connections are so-caed #ecause they are s!ecific to the user who creates them. In contrast tosystem connections$ whose configurations are stored under the +etc+sysconfig+network-
scrits+ directory *mainy in ifcfg- interface configuration fies+$ user
connection settings are stored in the %Conf configuration data#ase and the %N&M' keyring$ and are ony
a"aia#e during ogin sessions for the user who created them. Thus$ ogging out of the deskto! sessioncauses user-s!ecific connections to #ecome una"aia#e.
ip+ #n$rease se$urit& *& making ,'N $onne$tions user-spe$ifi$
0ecause NetworkManager uses the %Conf and %N&M' keyring a!!ications to store user connection
settings$ and #ecause these settings are s!ecific to your deskto! session$ it is highy recommended toconfigure your !ersona ,N connections as user connections. If you do so$ other non-root users on thesystem cannot "iew or access these connections in any way.
System connections$ on the other hand$ #ecome a"aia#e at #oot time and can #e used #y other users onthe system without first ogging in to a deskto! session.
NetworkManager can uicky and con"enienty con"ert user to system connections and "ice "ersa.Con"erting a user connection to a system connection causes NetworkManager to create the ree"antinterface configuration fies under the +etc+sysconfig+network-scrits+ directory$ and to
deete the %Conf settings from the user8s session. Con"ersey$ con"erting a system to a user-s!ecificconnection causes NetworkManager to remo"e the system-wide configuration fies and create the
corres!onding %Conf>%N&M' keyring settings.
The A)ai!a*!e to a!! users check#o; contros whether connections are user-s!ecific or system-wide
'ro$edure 5.". Changing a Conne$tion to *e ser-%pe$ifi$ instead of %&stem-(ide/ or ,i$e-,ersa
Depending on the s&stem0s po!i$&/ root pri)i!eges ma& *e reuired
(s discussed$ you may need root !ri"ieges on the system in order to change whether a connection isuser-s!ecific or system-wide.
1. ight-cick on the NetworkManager a!!et icon in the Notification (rea and cick Edit
Conne$tions. The Network Conne$tions window a!!ears.2. Seect the ta# for the ty!e of network connection you want to configure.3. Seect the s!ecific connection that you want to configure and cick Edit.. Check the A)ai!a*!e to a!! users check#o; to ask NetworkManager to make the connection a
system-wide connection. De!ending on system !oicy$ you may then #e !rom!ted for the root
!assword #y the 'o!i$&2it a!!ication. If so$ enter the root !assword to finai=e the change.
Con"ersey$ uncheck the A)ai!a*!e to a!! users check#o; to make the connection user-s!ecific.
-
8/16/2019 NetworkManaged Configuracion
5/9
5.3. Configuring Conne$tion %ettings
5.3.1. Configuring !"#4 ettings
'diting the I," Settings Ta#
The #')4 %ettings ta# aows you to configure the method #y which you connect to the Internet and enter
I, address$ route$ and DNS information as reuired. The #')4 %ettings ta# is a"aia#e when you createand modify one of the foowing connection ty!es) wired$ wireess$ mo#ie #road#and$ ,N or DS?.If you are using D9C, to o#tain a dynamic I, address from a D9C, ser"er$ you can sim!y set Methodto Automati$ D6C'7.
Chapter 8. NetworkManager
6.1. The NetworkManager Daemon6.2. Interacting with NetworkManager
6.2.1. Connecting to a Network 6.2.2. Configuring New and 'diting ';isting Connections6.2.3. Connecting to a Network (utomaticay6.2.. 7ser and System Connections
6.3. 'sta#ishing Connections6.3.1. 'sta#ishing a
-
8/16/2019 NetworkManaged Configuracion
6/9
6.5. NetworkManager (rchitecture
NetworkManager is a dynamic network contro and configuration system that attem!ts to kee! network de"ices and connections u! and acti"e when they are a"aia#e. NetworkManager consists of a coredaemon$ a %N&M' Notification (rea a!!et that !ro"ides network status information$ and gra!hicaconfiguration toos that can create$ edit and remo"e connections and interfaces. NetworkManager can #e
used to configure the foowing ty!es of connections) 'thernet$ wireess$ mo#ie #road#and *such asceuar 3%+$ and DSL and PPPoE *,oint-to-,oint o"er 'thernet+. In addition$ NetworkManager aows
for the configuration of network aiases$ static routes$ DNS information and ,N connections$ as we asmany connection-s!ecific !arameters. /inay$ NetworkManager !ro"ides a rich (,I "ia D-0us whichaows a!!ications to uery and contro network configuration and state.
,re"ious "ersions of /edora incuded the Network Administration oo!$ which was commony known as
system-config-network after its command ine in"ocation. In /edora 1@$ NetworkManager
re!aces the former Network Administration oo! whie !ro"iding enhanced functionaity$ such as user-s!ecific and mo#ie #road#and configuration. It is aso !ossi#e to configure the network in /edora 1@ #yediting interface configuration fies refer to Cha!ter @$ Network Interfaces for more information.
NetworkManager may #e instaed #y defaut on /edora. To ensure that it is$ first run the foowingcommand as the root user) ~]# yum install NetworkManager
8.1. he NetworkManager Daemon
The NetworkManager daemon runs with root !ri"ieges and is usuay configured to start u! at #oottime. 4ou can determine whether the NetworkManager daemon is running #y entering this command)
~]) systemctl status NetworkManager'serviceNetworkManager'service - Network Manager
Loa!e!, loa!e! (+li+system!+system+NetworkManager'service. enale!&
/ctive, active (running& since 0ri1 23 Mar $2"4 "$,2,25 62"22. 4 !ays ago
The systemctl status command wi re!ort NetworkManager as /ctive, inactive
(!ea!& if the NetworkManager ser"ice is not running. To start it for the current session run the
foowing command as the root user)
~]# systemctl start NetworkManager'service
un the systemctl enale command to ensure that NetworkManager starts u! e"ery time the
system #oots)
~]# systemctl enale NetworkManager'service
/or more information on starting$ sto!!ing and managing ser"ices and rune"es$ refer to Cha!ter $Services and Daemons.
B
http://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/sec-NetworkManager_Architecture.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Services_and_Daemons.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Services_and_Daemons.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Services_and_Daemons.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/sec-NetworkManager_Architecture.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Network_Interfaces.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Services_and_Daemons.htmlhttp://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/ch-Services_and_Daemons.html
-
8/16/2019 NetworkManaged Configuracion
7/9
5.4. sando !a interfa de !ina de $omandos
?os siguientes !asos demuestran como configurar una cone;in de red inaEm#rica en /edora Documentation a
tra"e= de a interfa= de inea de comandos *C?I+ utii=ando e comando iwconfig. 'ste es soo un eFem!o y
demuestra o sim!e ue es configurar una cone;in de red inaEm#rica en /edora Documentation utii=ando e
comando iwconfig. Se recomienda utii=ar NetworkManager como mGtodo de configuracin de redes
inaEm#ricas$ generamente no es necesario sa#er como usariwconfig
.1. ,rimero este seguro de ue NetworkManager no esta contrando a interfa= de red. Desmarue a o!cin
7ontrola!o or NetworkManager como se muestra en a imagen dis!oni#e aui) Seccin 5.3$
H7sando NetworkManager en e ,aso $ uego haga cic en /cetar y guarde os cam#ios.
2. einicie a mEuina !ara estar seguro de ue NetworkManager no esta controando a interfa= de red.
iwconfig es una utiidad de ina de comandos !ara esta#ecer os !arametros de una interfa= de red ue !uede
conectarse a redes inaEm#ricas. (#ra a termina y eFecute su - e ingrese a contraseJa root>administrador !ara
cam#iar a usuario root. 'Fecute iwconfig sin !arametros !ara mostrar cuaes son as interfaces con ca!acidad
inaEm#ricas)
8usuario9localost ~]) su -
Passwor!,
8root9localost ~]# iwconfig
lo no wireless e:tensions'
et2 no wireless e:tensions'
wlan2 unassociate! Mo!e,Manage! 0re;uency
-
8/16/2019 NetworkManaged Configuracion
8/9
,ara aueos usuarios ue !refieran a Knea de comandos$ /edora 13 introduFo dos nue"as herramientas !ara !oder administrar redes con Network Manager$ en a Knea de comandos.
$.%.1. nmcli
nmcli$ es e comando de consoa ue !one a Network Manager dis!oni#e !ara ser mani!uado desde
una termina. nmcli !osee e siguiente formato) nmci L&,CI&N'S &0'T& O C&M(ND& P he! Q.
• &,CI&N'S) e !ermite "isuai=ar a saida en modo a#re"iado -t $ o e;!andido -.
• &0'T&) !uede ser nm *estado de NetworkManage+$ con *cone;iones de NetworkManager+$ o
!ev *dis!ositi"os de NetworkManager+.
• C&MM(ND) es a accin so#re e &0'T&
'scri#a nmcli &0'T& el !ara "isuai=ar una ista de as acciones dis!oni#es. ,or eFem!o$ cuando
e &0'T& is nm $ os C&M(ND&S son)nmcli nm el
Hsage, nmcli nm I 7JMM/ND K el
7JMM/ND ,< I status K slee K wakeu K wifi K wwan
status slee
wakeu
wifi 8onKoff]
wwan 8onKoff]
'ntonces$ a eFecutar nmcli nm status$ o ue o#tenemos es)NM running, running
NM state, connecte!
NM wireless ar!ware, enale!
NM wireless, enale!
NM /N ar!ware, enale!
NM /N, enale!
,ara o#tener mayor informacin$ dirKFase a man nmcli.
$.%.2. &erramientas de nm
?a herramienta nm-tool ofrece informacin acerca de NetworkManager$ dis!ositi"os$ y redes inaEm#ricas. ,or
eFem!o)) nm-tool
NetworkManager Bool
State, connecte!
- Device, et2 8System et2]
--------------------------------------------------
Bye, ire!
Driver, 3"4Ftoo
State, connecte! Default, yes
> /!!ress, 22,$",72,7",@4,$F
7aailities,
7arrier Detect, yes
See!, "22 M+s
ire! Proerties
7arrier, on
Pv5 Settings,
/!!ress, "F$'"4%'"'$
Prefi:, $5 ($'$'$'2& =ateway, "F$'"4%'"'"
@
-
8/16/2019 NetworkManaged Configuracion
9/9
DNS, "F$'"4%'"'"
)