리눅스 버전,커널 버전 확인방법 & 페도라 11 네트워크 설정(on vmware) Linux



리눅스 버전 확인.

/etc/issue 와 /etc/redhat-release

 

리눅스 커널 버전 확인.

 

/proc/version

 

fedora11)

 

cat /etc/issue ; cat /etc/redhat-release
Fedora release 11 (Leonidas)
Kernel \r on an \m (\l)

Fedora release 11 (Leonidas)

 

cat /proc/version

Linux version 2.6.29.4-167.fc11.i686.PAE (mockbuild@x86-5.fedora.phx.redhat.com) (gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC) ) #1 SMP Wed May 27 17:28:22 EDT 2009

 


 

페도라 11 네트워크 설정

 

/etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

/etc/resolv.conf
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 168.126.63.1               << DNS 라 보면됨.

/etc/sysconfig/network

NETWORKING=yes
HOSTNAME=localhost.localdomain


 

/etc/sysconfig/network-scripts/ifcfg-eth0

# Networking Interface
DEVICE=eth0
HWADDR=00:0C:29:87:C4:BC
ONBOOT=yes
IPADDR=192.168.xxx.100                  << 이놈 vm에 edit -> virtual network editor NAT 에 보면나옴.
BOOTPROTO=none
NETMASK=255.255.255.0                  << 대부분 비슷
TYPE=Ethernet
GATEWAY=192.168.xxx.2                 << 이놈은 기본적으로 ip에서 제일 마지막 필드만 바뀜.
DNS1=168.126.63.1                 << 위 DNS와 같은값
IPV6INIT=no
USERCTL=no
PREFIX=24
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03

 

reboot 하거나, service network restart 함.

 

그리고 nslookup www.naver.com  dns가 잘동작해서 애네 ip 잘가져오나 확인. 


덧글

댓글 입력 영역