Home Linux Sample configurations after creating bonding in linux (configuring network with bond)
Sample configurations after creating bonding in linux (configuring network with bond) PDF Print E-mail
Written by Siva   
Monday, 22 November 2010 19:14

These are all stuffs you need to touch when creating bond / working with configuring network

 

blue & green highlighted:

Don' t do those unless you know what you are doing.

 

 

[root@vmgenie23 ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0

DEVICE=bond0

IPADDR=10.20.15.15

NETMASK=255.255.254.0

MTU=1400

ONBOOT=yes

TYPE=Ethernet

 

 

[root@vmgenie23 ~]# cat /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=vmgenie23

GATEWAY=10.20.15.1

 

 

 

[root@vmgenie23 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

MASTER=bond0

SLAVE=yes

ONBOOT=yes

 

 

[root@vmgenie23 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE=eth1

MASTER=bond0

SLAVE=yes

ONBOOT=yes

 

 

[root@vmgenie23 ~]# cat /etc/modprobe.conf

alias eth0 bnx2

alias eth1 bnx2

alias scsi_hostadapter qla2xxx

alias scsi_hostadapter1 megaraid_sas

alias scsi_hostadapter2 ata_piix

alias scsi_hostadapter3 qla2400

alias usb-controller ehci-hcd

alias usb-controller1 uhci-hcd

alias net-pf-10 off

alias bond0 bonding

options bond0 mode=active-backup miimon=1000 max_bonds=1

 

 

 

[root@vmgenie23 ~]# cat /etc/resolv.conf

nameserver      10.20.8.23

nameserver      10.20.1.53

nameserver      10.20.12.50

nameserver      10.24.12.53

search vmgenie.net ad.vmgenie.com

 

 

[root@vmgenie23 ~]# cat /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=vmgenie23

GATEWAY=10.20.15.1

[root@edc1lxdbc4n1 ~]#

 

Service network restart

Service sshd restart

 

 

--------------------------------------------------------------------

 

[root@vmgenie23 ~]# vi /etc/ssh/sshd_config

 

#       $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $

 

# This is the sshd server system-wide configuration file.  See

# sshd_config(5) for more information.

 

# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

 

# The strategy used for options in the default sshd_config shipped with

# OpenSSH is to specify options with their default value where

# possible, but leave them commented.  Uncommented options change a

# default value.

 

#Port 22

#Protocol 2,1

#ListenAddress 0.0.0.0

#ListenAddress ::

 

# HostKey for protocol version 1

#HostKey /etc/ssh/ssh_host_key

# HostKeys for protocol version 2

#HostKey /etc/ssh/ssh_host_rsa_key

#HostKey /etc/ssh/ssh_host_dsa_key

 

# Lifetime and size of ephemeral version 1 server key

#KeyRegenerationInterval 1h

#ServerKeyBits 768

 

# Logging

#obsoletes QuietMode and FascistLogging

#SyslogFacility AUTH

SyslogFacility AUTHPRIV

#LogLevel INFO

 

# Authentication:

 

#LoginGraceTime 2m

PermitRootLogin yes

#StrictModes yes

#MaxAuthTries 6

 

#RSAAuthentication yes

#PubkeyAuthentication yes

#AuthorizedKeysFile     .ssh/authorized_keys

 

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts

#RhostsRSAAuthentication no

# similar for protocol version 2

#HostbasedAuthentication no

# Change to yes if you don't trust ~/.ssh/known_hosts for

# RhostsRSAAuthentication and HostbasedAuthentication

#IgnoreUserKnownHosts no

# Don't read the user's ~/.rhosts and ~/.shosts files

#IgnoreRhosts yes

 

# To disable tunneled clear text passwords, change to no here!

#PasswordAuthentication yes

#PermitEmptyPasswords no

PasswordAuthentication yes

 

# Change to no to disable s/key passwords

#ChallengeResponseAuthentication yes

ChallengeResponseAuthentication no

 

# Kerberos options

#KerberosAuthentication no

#KerberosOrLocalPasswd yes

#KerberosTicketCleanup yes

#KerberosGetAFSToken no

 

# GSSAPI options

[root@vmgenie23 ~]#

[root@vmgenie23 ~]#

 

 

Last Updated on Monday, 22 November 2010 19:27
 
 

Advertisement

Featured Links:
HREmail.com
Looking for job? Try HREmail.com
Want to have CMS based Websites?
Try siliconwebcreators.com to CMS based websites.
VM Solutions Inc
For best VM solutions..
Digital Procedure Inc.
Looking for Oracle /SAP /Weblogic Consulting services? visit digitalprocedure.com