Finally, i passed my CX310-302 with 93/100.
i am entitled for HP iPAQ 612. hurray...!
Thursday, July 10, 2008
Wednesday, July 9, 2008
SCNA 10 - CX310-302 - 10 July 2008
I reschedule my exam to Thurday, 10 July. Wish me Good luck and get score .. >92% ..
Tired to study already ..
CX310-200, Solaris 10 Admin I: 91%
CX310-202, Solaris 10 Admin II: 92%
CX310-302, Solaris 10 Network: ???
Tired to study already ..
CX310-200, Solaris 10 Admin I: 91%
CX310-202, Solaris 10 Admin II: 92%
CX310-302, Solaris 10 Network: ???
Thursday, July 3, 2008
ifconfig & route for Linux & Solaris
Linux;
# Set the ip & bring up the interface
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
# Add/Del default route
route add default gw 192.168.0.1
route del default gw 192.168.0.1
OR
route add default gw 192.168.1.1 eth0
# Add route to network
route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
# Add route to host
route add -host 10.10.10.45 gw 192.168.0.1
===============
Solaris;
# Enable network interface
ifconfig vmxnet0 plumb up
# Set the ip & bring up the interface
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 up
# + sign will refer to default network configuration file
ifconfig hme0 192.168.1.13 netmask + broadcast + up
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255 up
# Add default route
route add default 192.168.1.1
# Add static route to network
route add net 192.168.68.0 192.168.0.1 -netmask 255.255.255.0
# 192.168.0.1 is gw
# Add static route to host
route add host 192.168.1.2 192.168.5.1
# 192.168.5.1 is gw
# Add the persistent route,
# The static routes will be stored in file /etc/inet/static_routes.
route -p add 192.168.15.0 192.168.15.1
HP-UX
# Set IP and bring up the NIC
ifconfig lan0 16.118.112.135 netmask 255.255.255.0 up
# Bring down NIC
ifconfig lan0 down
> Network configuration file;
/etc/rc.config.d/netconf
# Set the ip & bring up the interface
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
# Add/Del default route
route add default gw 192.168.0.1
route del default gw 192.168.0.1
OR
route add default gw 192.168.1.1 eth0
# Add route to network
route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
route del -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.1.254 eth0
# Add route to host
route add -host 10.10.10.45 gw 192.168.0.1
===============
Solaris;
# Enable network interface
ifconfig vmxnet0 plumb up
# Set the ip & bring up the interface
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 up
# + sign will refer to default network configuration file
ifconfig hme0 192.168.1.13 netmask + broadcast + up
ifconfig hme0 192.168.1.13 netmask 255.255.255.0 broadcast 192.168.1.255 up
# Add default route
route add default 192.168.1.1
# Add static route to network
route add net 192.168.68.0 192.168.0.1 -netmask 255.255.255.0
# 192.168.0.1 is gw
# Add static route to host
route add host 192.168.1.2 192.168.5.1
# 192.168.5.1 is gw
# Add the persistent route,
# The static routes will be stored in file /etc/inet/static_routes.
route -p add 192.168.15.0 192.168.15.1
HP-UX
# Set IP and bring up the NIC
ifconfig lan0 16.118.112.135 netmask 255.255.255.0 up
# Bring down NIC
ifconfig lan0 down
> Network configuration file;
/etc/rc.config.d/netconf
Wednesday, June 25, 2008
Solaris NIC
Installing an Ethernet Card
To install an additional Ethernet interface (let's call it le1):
1) Put the card in and from the ok> prompt do a boot -r
a) create /etc/hostname.le1 that contains the host name
b) make the interface known to the system:
ifconfig le1 plumb
3) configure the interface:
ifconfig le1 up netmask + broadcast +
4) test the connection
Sun Network Interface Duplex
Checking and setting the link parameters of Sun hme network interfaces requires the use of the ndd command. The procedure for qfe interfaces is similar, except that the instance must be specified. For example, the Sun QuadFast Ethernet card would have instances 0-3: qfe0, qfe1, qfe2, qfe3.
Checking the current running speed(s):
Choose the interface instance:
# ndd -set /dev/qfe instance 0
That selects the first instance: qfe0. Note that the default instance is 0.
Check the status, speed & mode:
# ndd -get /dev/qfe link_status
1 = up
0 = down
# ndd -get /dev/qfe link_speed
1 = 100 Mb
0 = 10 Mb
# ndd -get /dev/qfe link_mode
1 = Full Duplex (FDX)
0 = Half Duplex (HDX)
Hot to configure individual interfaces via ndd commands:
These commands are usually placed in a startup script such as /etc/rc2.d/S99qfe.
Hot to force 100Mbs Full Duplex (FDX) on qfe1:
ndd -set /dev/qfe instance 1
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0
It is important to run these commands in the above order. The link will be renegotiated when the final command is run.
To install an additional Ethernet interface (let's call it le1):
1) Put the card in and from the ok> prompt do a boot -r
a) create /etc/hostname.le1 that contains the host name
b) make the interface known to the system:
ifconfig le1 plumb
3) configure the interface:
ifconfig le1 up netmask + broadcast +
4) test the connection
Sun Network Interface Duplex
Checking and setting the link parameters of Sun hme network interfaces requires the use of the ndd command. The procedure for qfe interfaces is similar, except that the instance must be specified. For example, the Sun QuadFast Ethernet card would have instances 0-3: qfe0, qfe1, qfe2, qfe3.
Checking the current running speed(s):
Choose the interface instance:
# ndd -set /dev/qfe instance 0
That selects the first instance: qfe0. Note that the default instance is 0.
Check the status, speed & mode:
# ndd -get /dev/qfe link_status
1 = up
0 = down
# ndd -get /dev/qfe link_speed
1 = 100 Mb
0 = 10 Mb
# ndd -get /dev/qfe link_mode
1 = Full Duplex (FDX)
0 = Half Duplex (HDX)
Hot to configure individual interfaces via ndd commands:
These commands are usually placed in a startup script such as /etc/rc2.d/S99qfe.
Hot to force 100Mbs Full Duplex (FDX) on qfe1:
ndd -set /dev/qfe instance 1
ndd -set /dev/qfe adv_100T4_cap 0
ndd -set /dev/qfe adv_100fdx_cap 1
ndd -set /dev/qfe adv_100hdx_cap 0
ndd -set /dev/qfe adv_10fdx_cap 0
ndd -set /dev/qfe adv_10hdx_cap 0
ndd -set /dev/qfe adv_autoneg_cap 0
It is important to run these commands in the above order. The link will be renegotiated when the final command is run.
Tuesday, June 24, 2008
Solaris Zone Config File
Solaris Zone config file; then execute “zonecfg -z zoneA -f /var/tmp/zoneA_config” to configure the non-global zone.
To get the config from existing zone;
# zoneadm -z zoneB halt
# zonecfg -z zoneB export > /var/tmp/zoneB_config
# zoneadm -z zoneB boot
Zone Config file
# cat zoneA_config
create -b
set zonepath=/export/home/zones/zoneA
set autoboot=true
set pool=cwp1-pool
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/zoneshare
end
add fs
set dir=/opt/precom
set special=/opt/cwpqv04
set type=lofs
add options rw
add options nodevices
end
add net
set address=147.243.251.57
set physical=e1000g0
end
add net
set address=10.188.149.57
set physical=e1000g1
end
add net
set address=10.190.149.57
set physical=e1000g3
end
add attr
set name=comment
set type=string
set value="my server"
end
To get the config from existing zone;
# zoneadm -z zoneB halt
# zonecfg -z zoneB export > /var/tmp/zoneB_config
# zoneadm -z zoneB boot
Zone Config file
# cat zoneA_config
create -b
set zonepath=/export/home/zones/zoneA
set autoboot=true
set pool=cwp1-pool
set ip-type=shared
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end
add inherit-pkg-dir
set dir=/opt/zoneshare
end
add fs
set dir=/opt/precom
set special=/opt/cwpqv04
set type=lofs
add options rw
add options nodevices
end
add net
set address=147.243.251.57
set physical=e1000g0
end
add net
set address=10.188.149.57
set physical=e1000g1
end
add net
set address=10.190.149.57
set physical=e1000g3
end
add attr
set name=comment
set type=string
set value="my server"
end
Wednesday, June 18, 2008
SCNA 10 - CX310-302 - Review
In progress .. Chapter 7 ..
CIDR ..
Total is 12 chapters.
Slow ..
Plan Exam Date: 14 July 2008
Finish Study Date: 29 June 2008
Review Date: 30 Jun - 12 Jul 2008
CIDR ..
Total is 12 chapters.
Slow ..
Plan Exam Date: 14 July 2008
Finish Study Date: 29 June 2008
Review Date: 30 Jun - 12 Jul 2008
Solaris Persistent Static Route
Reference Link: Implementing Persistent Host and Network Routes on Solaris Systems
root@myhost # uname -a
SunOS myhost 5.10 Generic_125100-06 sun4v sparc SUNW,Sun-Fire-T200
root@myhost # pwd
/etc/init.d
root@myhost # more routeadd
#!/bin/sh
#
# Static routes to Maintenance and Backup network for eg. AppGate use
#
# To install:
# 1) cp routeadd /etc/init.d
# 2) perform edits on the script as required
# 3) chmod 744 /etc/init.d/routeadd
# 4) chown root:sys /etc/init.d/routeadd
# 5) ln /etc/init.d/routeadd /etc/rc2.d/S99routeadd
#
GATEWAY=10.188.131.1
BACKUP_GATEWAY=10.190.131.1
BACKUP_NET=10.190.128.0
case "$1" in
'start')
echo "adding static network route"
/usr/sbin/route add -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route add -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
'stop')
echo "deleting static network route"
/usr/sbin/route delete -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
root@myhost # ls /etc/rc*.d/*route*
/etc/rc2.d/S99routeadd
root@myhost # netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.188.131.0 10.188.131.40 U 1 877 e1000g2
10.190.131.0 10.190.131.37 U 1 102 e1000g3
10.160.242.0 10.160.242.37 U 1 11382 e1000g0
10.160.242.0 10.160.242.37 U 1 0 e1000g0:1
10.160.242.0 10.160.242.37 U 1 1254 e1000g1
147.243.2.0 10.188.131.1 UG 1 0
147.243.130.0 10.188.131.1 UG 1 0
147.243.226.0 10.188.131.1 UG 1 0
147.243.194.0 10.188.131.1 UG 1 0
147.243.233.0 10.188.131.1 UG 1 0
10.40.15.0 10.188.131.1 UG 1 0
147.243.17.0 10.188.131.1 UG 1 2179
147.243.145.0 10.188.131.1 UG 1 91
147.243.209.0 10.188.131.1 UG 1 0
10.40.17.0 10.188.131.1 UG 1 0
10.190.128.0 10.190.131.1 UG 1 202
224.0.0.0 10.160.242.37 U 1 0 e1000g0
default 10.160.242.1 UG 1 50800
127.0.0.1 127.0.0.1 UH 33 447401 lo0
root@myhost #
root@myhost # uname -a
SunOS myhost 5.10 Generic_125100-06 sun4v sparc SUNW,Sun-Fire-T200
root@myhost # pwd
/etc/init.d
root@myhost # more routeadd
#!/bin/sh
#
# Static routes to Maintenance and Backup network for eg. AppGate use
#
# To install:
# 1) cp routeadd /etc/init.d
# 2) perform edits on the script as required
# 3) chmod 744 /etc/init.d/routeadd
# 4) chown root:sys /etc/init.d/routeadd
# 5) ln /etc/init.d/routeadd /etc/rc2.d/S99routeadd
#
GATEWAY=10.188.131.1
BACKUP_GATEWAY=10.190.131.1
BACKUP_NET=10.190.128.0
case "$1" in
'start')
echo "adding static network route"
/usr/sbin/route add -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route add -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route add -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route add -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
'stop')
echo "deleting static network route"
/usr/sbin/route delete -net 147.243.2.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.130.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.145.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.226.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.233.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.194.0 ${GATEWAY} 1
/usr/sbin/route delete -net 147.243.209.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.15.0 ${GATEWAY} 1
/usr/sbin/route delete -net 10.40.17.0 ${GATEWAY} 1
/usr/sbin/route delete -net ${BACKUP_NET} ${BACKUP_GATEWAY} 1
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
exit 0
root@myhost # ls /etc/rc*.d/*route*
/etc/rc2.d/S99routeadd
root@myhost # netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
10.188.131.0 10.188.131.40 U 1 877 e1000g2
10.190.131.0 10.190.131.37 U 1 102 e1000g3
10.160.242.0 10.160.242.37 U 1 11382 e1000g0
10.160.242.0 10.160.242.37 U 1 0 e1000g0:1
10.160.242.0 10.160.242.37 U 1 1254 e1000g1
147.243.2.0 10.188.131.1 UG 1 0
147.243.130.0 10.188.131.1 UG 1 0
147.243.226.0 10.188.131.1 UG 1 0
147.243.194.0 10.188.131.1 UG 1 0
147.243.233.0 10.188.131.1 UG 1 0
10.40.15.0 10.188.131.1 UG 1 0
147.243.17.0 10.188.131.1 UG 1 2179
147.243.145.0 10.188.131.1 UG 1 91
147.243.209.0 10.188.131.1 UG 1 0
10.40.17.0 10.188.131.1 UG 1 0
10.190.128.0 10.190.131.1 UG 1 202
224.0.0.0 10.160.242.37 U 1 0 e1000g0
default 10.160.242.1 UG 1 50800
127.0.0.1 127.0.0.1 UH 33 447401 lo0
root@myhost #
Subscribe to:
Posts (Atom)