02. Epc 설치 전 확인사항 - netipark/t_lte GitHub Wiki
$ 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
$ sudo vi /etc/resolv.conf
nameserver 8.8.8.8
$ apt-get update
$ 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
...
$ apt-get install subversion
- /opt 경로에 OpenEPC export(또는 checkout)
$ svn export[또는 co] https://extsvnsrv.corenetdynamics.com/svn/Hanwha
*아래와 같이 지정 위치에 폴더 복사
$ cp -rf /opt/Hanwha/setup/OpenEPC /opt/
git clone http://10.168.30.110:8081/epc/DMC_EPC.git /opt/
=====================================================================
=====================================================================
$ ifconfig 로 인터페이스 확인하여 MAC Address 확인
$ 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
$ sudo vi /etc/udev/rules.d/70-network.rules
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
# 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'