## ## Configure eth0 # # vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0" NM_CONTROLLED="yes" ONBOOT=yes HWADDR=A4:BA:DB:37:F1:04 TYPE=Ethernet BOOTPROTO=static NAME="System eth0" UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03 IPADDR=192.168.1.44 NETMASK=255.255.255.0 ## Configure Default Gateway # # vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos6 GATEWAY=192.168.1.1 ## Restart Network Interface # /etc/init.d/network restart ## Configure DNS Server # # vi /etc/resolv.conf nameserver 8.8.8.8 # Replace with your nameserver ip nameserver 192.168.1.1 # Replace with your nameserver ip |
### Source: https://gist.github.com/fernandoaleman/2172388#file-linux-static-ip
Do you have basic command on Mikrotik?
LikeLike
Not really, but you can find in MikroTik Wiki: https://wiki.mikrotik.com/wiki/Manual:Console#Overview
LikeLike
Basic command line
1. To create a name for network card
2. To assign ip address to network card
3. To create NAT rule
4. To assign dns
admin@mikrotik>ip dns>set primary-dns=x.x.x.x
admin@mikrotik>ip dns>set secondary-dns=x.x.x.x
admin@mikrotik>ip dns>set allow-remote-requests=yes (It doesn’t work)
5. To create dhcp
LikeLiked by 1 person
If you have what I listed above please post on MikroTik category
LikeLike
I’m busy today, I’ll prepare to post late today
LikeLike
I already added: https://vichhaiy.wordpress.com/2017/12/12/some-basic-mikrotik-commands/
Hope this help :)
LikeLike
Thanks.
LikeLike