where are the network configurations ?

sorcerer
Posts: 225
Member Since:
2007-10-03

I am really sorry for my very dummy questions, but I am used to Debian and I don't know where all configuration is on CentOS.
That's why I am looking for the network configuration scripts on CentOS.
For example I want to create a bridge using my ethernet and wlan interfaces.
I installed bridge-utils for this purpose and I can actually create the bridge.
However, I don't know where to put the commandsto create the bridge on startup.
Similar to that , I don't know where to put commands to activate my wlan interface as access point with encryption settings etc.

Any help would be appreciated. Thanks



ethans
Posts: 519
Member Since:
2007-01-16
CentOS network

CentOS network configurations are in /etc/sysconfig/network-scripts



sorcerer
Posts: 225
Member Since:
2007-10-03
-

I noticed that my Trixbox waits for a while while booting.
The reason is in the bootup messages:

Bringing up loopback interface:  [  OK  ]
Bringing up interface br0:  device br0 already exists; can't create bridge with the same name
device eth2 is already a member of a bridge; can't enslave it to bridge br0.
device ath0 is already a member of a bridge; can't enslave it to bridge br0.
device br0 already exists; can't create bridge with the same name
device eth2 is already a member of a bridge; can't enslave it to bridge br0.
device ath0 is already a member of a bridge; can't enslave it to bridge br0.
device br0 already exists; can't create bridge with the same name
device eth2 is already a member of a bridge; can't enslave it to bridge br0.
device ath0 is already a member of a bridge; can't enslave it to bridge br0.
[  OK  ]
Bringing up interface wifi0:  
Determining IP information for wifi0... failed.
[FAILED]
Bringing up interface ppp0:  [  OK  ]

How can I manually enable disable some of these actions ? For example, there is no need to assign an IP address to interface wifi0 because it is a member of bridge inteface br0.
From which file can I do that ?

Thanks.



sorcerer
Posts: 225
Member Since:
2007-10-03
-

please help about this. I don't understand filesystem of CentOS.



sorcerer
Posts: 225
Member Since:
2007-10-03
-

hi,

I still couldn't find the correct file. Any help is appreciated.

Thanks...



IcelandDreams
Posts: 415
Member Since:
2007-09-11
How did you get so many

How did you get so many interfaces? anyway, /etc/sysconfig/network-scripts/ifcfg-xxxx such as ifcfg-eth2
'ONBOOT=yes' or no will keep the config but not start it up if set to no. Double check that /etc/sysconfig/network has the right settings.



sorcerer
Posts: 225
Member Since:
2007-10-03
-

thanks for your attention.
I checked the configs, but only br0 is set as "ONBOOT=yes" , ath0 doesn't even have a cfg file and eth2 is set as "ONBOOT=no"
There must be something else which triggers them, but what ?

Here's my cfgs:

[trixbox1.localdomain ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0   
ifconfig ath0 0.0.0.0 up
#iwconfig ath0 mode master essid xeon key restricted s:xaxa903903111
#hostapd -B /etc/hostapd.conf
ifconfig eth2 up
brctl addbr br0
brctl addif br0 eth2
brctl addif br0 ath0

NAME=""
BOOTPROTO=none
DEVICE=br0
NETMASK=255.255.255.0
MTU=""
BROADCAST=192.168.254.255
IPADDR=192.168.254.254
NETWORK=192.168.254.0
ONBOOT=yes     
[trixbox1.localdomain ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth2
# VIA Technologies, Inc. VT6105M [Rhine-III]
DEVICE=eth2
ONBOOT=no
BOOTPROTO=dhcp
HWADDR=00:0d:b9:12:cf:91
[trixbox1.localdomain ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1
# VIA Technologies, Inc. VT6105M [Rhine-III]
DEVICE=eth1
ONBOOT=no
BOOTPROTO=dhcp
HWADDR=00:0d:b9:12:cf:90


sorcerer
Posts: 225
Member Since:
2007-10-03
-

any ideas ?



sorcerer
Posts: 225
Member Since:
2007-10-03
-

please help...



sorcerer
Posts: 225
Member Since:
2007-10-03
-

still couldn't achieve anything. anyone with knowledge about this ?



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.