02. Epc 설치 전 확인사항 - netipark/t_lte GitHub Wiki


* eth0 IP 설정

$ apt-get install iptables

$ sudo vi /etc/network/interfaces

auto eth0
iface eth0 inet static
	address 23.44.128.228 # 외부망 IP
	netmask 255.255.255.0
	gateway 23.44.128.1
	dns-nameservers 172.16.32.10 168.126.63.1

* DNS nameserver 설정

$ sudo vi /etc/resolv.conf

nameserver 8.8.8.8

* apt-get 업데이트 실행

$ apt-get update

* 설치 전 iptables 설치

$ apt-get install iptables 위의 명령어 실행 안하면 아래의 오류 발생

 $ /opt/OpenEPC/install/install_system.sh
 ...
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
RTNETLINK answers: Operation not supported
    OpenEPC >>> Linking /opt/OpenEPC/etc//opt/OpenEPC/etc/sysctl.conf.allinone-mesh /etc//etc/sysctl.conf
    OpenEPC >>> Running: [ln -sf /opt/OpenEPC/etc/sysctl.conf.allinone-mesh /etc/sysctl.conf]
    OpenEPC >>> Linking /opt/OpenEPC/etc//opt/OpenEPC/etc/rc.local.allinone-mesh /etc//etc/rc.local
    OpenEPC >>> Running: [ln -sf /opt/OpenEPC/etc/rc.local.allinone-mesh /etc/rc.local]
/etc/rc.local: 14: /etc/rc.local: /sbin/iptables: not found
/etc/rc.local: 15: /etc/rc.local: /sbin/iptables: not found
/etc/rc.local: 16: /etc/rc.local: /sbin/iptables: not found
Running wrapp_in_namespace.sh create to create network namespace\n
no namespace name is given, using the default one 'osdnc'
no interfac names, using the default ones (veth0,veth1)
no outgoing interface is present, use the default one (mesh)
Setting up the namespace: osdnc with local interface: veth0 and remote interface: veth1
Cannot find device "mesh"
Cannot find device "mesh"
Adding UE routes
...

Case 1: CND SVN 서버에서 소스코드를 내려받는 경우

$ apt-get install subversion

  • /opt 경로에 OpenEPC export(또는 checkout)

$ svn export[또는 co] https://extsvnsrv.corenetdynamics.com/svn/Hanwha

*아래와 같이 지정 위치에 폴더 복사

$ cp -rf /opt/Hanwha/setup/OpenEPC /opt/

Case 2: 사내 GIT 서버에서 소스코드를 내려받는 경우

git clone http://10.168.30.110:8081/epc/DMC_EPC.git /opt/

=====================================================================

$ OpenEPC_path/install/make_udev.sh 실행

> 아래 설정 사항 자동 적용

=====================================================================

1. 네트워크 인트페이스 확인

$ ifconfig 로 인터페이스 확인하여 MAC Address 확인

2. /etc/network/interfaces 파일에서 인터페이스 명칭 수정

$ sudo vi /etc/network/interfaces

Interfaces file for allinone

auto lo
iface lo inet loopback

auto www
iface www inet static
	address 23.44.128.228 # 외부망 IP
	netmask 255.255.255.0
	gateway 23.44.128.1
	dns-nameservers 172.16.32.10 168.126.63.1


auto net_db
iface net_db inet manual
  up   /opt/OpenEPC/etc/network/set_ip.sh $IFACE up
  down /opt/OpenEPC/etc/network/set_ip.sh $IFACE down

3. /etc/udev/rules.d/70-network.rules 파일에서 MAC address에 맞는 명칭 수정

$ sudo vi /etc/udev/rules.d/70-network.rules

4. /etc/default/grub 파일을 열어 "net.ifnames=0" 추가

vi /etc/default/grub

GRUB_CMDLINE_LINUX="find_preseed=/preseed.cfg auto noprompt priority=critical net.ifnames=0 locale=en_US"

#### 5. update-grub 실행하여 적용/재시작
# sudo update-grub
# sudo reboot

* EPC Network 구성 변경

10.2.X.X 로 변경하는 경우
# cd OpenEPC/install
# grep -rl "192.168" * | xargs sed -i 's/192.168/10.2/g'
...
# cd OpenEPC/etc
# grep -rl "192.168" * | xargs sed -i 's/192.168/10.2/g'

⚠️ **GitHub.com Fallback** ⚠️