Posts

Showing posts from March 14, 2019

Connecting two routers and configuring 6in4 tunnel for both

Image
0 I have connected two routers,by cable from first router to wan port on second router, configure second private subnet, configure routing, turn off NAT on second(nested) router, and all working fine. First router have ipv6 6in4 tunnel config, and it working fine for clients of that router. PC connected to second router don't receive ipv6 ip, as expected. So, I receive one more tunnel from broker and configure it. It uses same public ip address. Working fine for a little while, then ipv6 stop working. Question is, how to configure 6in4 tunnel(or two) for two routers, one behind another, with one public ip? Routers are very simple, for home use. Btw, second router didn't receive ipv6 ip from first, only ipv4 by dhcp. It capable to setup few types of ipv6 tunnels, or static ipv6. Tunel provider probab

Cleaning up a string without split/strip/built-in functions

Image
5 0 My requirements Use Python to create a function cleanstring(S) to "clean up" the spaces in a sentence S . The sentence may have extra spaces at the front and/or at the end and/or between words. The subroutine returns a new version of the sentence without the extra spaces. That is, in the new string, the words should be the same but there should be no spaces at the start, only one space between each word and no spaces at the end. This program is about you writing code to search through a string to find words and so you are not allowed to use the split function in Python. You can solve this problem with the basic capabilities of the if and while statements and string operations of len and concatentation. For example: if the input is: " Hello to the world !" then the output sh