1. 서버에 설정된 네트워크카드와 ip 확인
[amerry:/]ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
inet 2xx.1xx.1xx.1xx netmask ffffffc0 broadcast 222.106.136.255
ether 0:14:4f:b1:c5:56
bge1: flags=1100803<UP,BROADCAST,MULTICAST,ROUTER,IPv4> mtu 1500 index 3
inet 192.168.2.2 netmask ffffff00 broadcast 192.168.2.255
ether 0:14:4f:b1:c5:57
bge2: flags=1100803<UP,BROADCAST,MULTICAST,ROUTER,IPv4> mtu 1500 index 4
inet 192.168.2.3 netmask ffffff00 broadcast 192.168.2.255
ether 0:14:4f:b1:c5:58
2. 새로 ip 를 부여할 네트워크 카드 추가
[amerry:/]ifconfig bge3 plumb
[amerry:/]ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
inet 2xx.1xx.1xx.1xx netmask ffffffc0 broadcast 222.106.136.255
ether 0:14:4f:b1:c5:56
bge1: flags=1100803<UP,BROADCAST,MULTICAST,ROUTER,IPv4> mtu 1500 index 3
inet 192.168.2.2 netmask ffffff00 broadcast 192.168.2.255
ether 0:14:4f:b1:c5:57
bge2: flags=1100803<UP,BROADCAST,MULTICAST,ROUTER,IPv4> mtu 1500 index 4
inet 192.168.2.3 netmask ffffff00 broadcast 192.168.2.255
ether 0:14:4f:b1:c5:58
bge3: flags=1100802<BROADCAST,MULTICAST,ROUTER,IPv4> mtu 1500 index 6
inet 0.0.0.0 netmask 0
ether 0:14:4f:b1:c5:59
3. 서버 Reboot 후에도 적용될 수 있게 2개의 파일 수정
[amerry:/]cat /etc/hostname.bge3
192.168.2.4
[amerry:/]cat /etc/netmasks
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
2xx.1xx.1xx.1xx 255.255.255.192
192.168.2.0 255.255.255.0
'Work > Solaris' 카테고리의 다른 글
Ldom 구동상태에서 Primary 재부팅시 (0) | 2014.05.29 |
---|---|
Oracle Logical Domain Manager ( LDOM or OVM ) (0) | 2014.05.29 |
Solaris10 네트워크 장치 확인 (0) | 2013.12.29 |
Solaris10 swap 추가 하기 (0) | 2013.12.29 |
Solaris10 네트워크설정 (0) | 2013.12.29 |